SceneStaticLayerCache class

Cache for the static scene layer (background + grid).

Why: avoid re-drawing the grid every frame when inputs are unchanged. Invariant: the cache key must match size, background, grid, camera offset, and grid stroke width. Validate: test/render/scene_static_layer_cache_test.dart.

Constructors

SceneStaticLayerCache()

Properties

debugBuildCount int
no setter
debugDisposeCount int
no setter
debugKeyHashCode int?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
draw(Canvas canvas, Size size, {required Background background, required Offset cameraOffset, required double gridStrokeWidth}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited