WidgetUpdatePolicy class sealed
When a WidgetTexture (or a WidgetComponent) re-captures its child.
Constructors
- WidgetUpdatePolicy.interval(Duration duration)
-
Capture at most once per
duration.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Constants
- everyFrame → const WidgetUpdatePolicy
- Capture every frame while attached (the default). Captures are throttled to one in flight, and the recording itself reuses the child's retained layers, so the steady-state cost is the rasterize and readback of content that is actually changing.
- manual → const WidgetUpdatePolicy
- Capture only when WidgetTextureController.requestCapture is called.