WidgetUpdatePolicy class sealed Widgets

When a WidgetTexture (or a WidgetComponent) re-captures its child.

Constructors

WidgetUpdatePolicy.interval(Duration duration)
Capture at most once per duration.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
interval → Duration?
The capture interval when this is an WidgetUpdatePolicy.interval policy, or null for the other policies.
no setter
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 rasterizing the content that is actually changing.
manual → const WidgetUpdatePolicy
Capture only when WidgetTextureController.requestCapture is called.