DiagramRenderPolicy class final
Runtime tuning for how the canvas retains painted content.
Both switches default to the DIAGRAM_RETAIN_CONTENT and
DIAGRAM_RASTER_CONTENT --dart-define values, so existing builds keep
their behavior; set them here to tune a canvas without recompiling.
Constructors
- DiagramRenderPolicy({bool retainContent = const bool.fromEnvironment('DIAGRAM_RETAIN_CONTENT'), bool rasterContent = const bool.fromEnvironment('DIAGRAM_RASTER_CONTENT')})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- rasterContent → bool
-
Rasterize settled, unselected content batches into device-pixel images
(experimental).
final
- retainContent → bool
-
Retain content bands in their own raster layers (experimental). Bounded
to a few bands so dense native-widget scenes do not allocate a layer per
widget band.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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.
override