TickerMode class
Muting lever for tickers in this subtree — a scope read by every ticker-owning widget below it.
- Inheritance
-
- Object
- Widget
- ProxyWidget
- Scope<
_TickerModeData> - TickerMode
- Available extensions
Constructors
- TickerMode({Key? key, required bool enabled, required Widget child})
-
const
Properties
- child → Widget
-
finalinherited
- enabled → bool
-
When true, descendant tickers fire their callbacks normally.
When false, descendant tickers continue to advance their
internal elapsed time but skip their user callbacks. Callbacks
resume the next scheduler tick after this flips back to true,
at the current clock-relative elapsed value (no replay).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
createElement(
) → ScopeElement< _TickerModeData> -
Creates the Element that will mount this widget into the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
covariant Scope< _TickerModeData> oldWidget) → bool -
Whether replacement of this widget should rebuild its readers.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → bool -
Returns the enabled value of the nearest ancestor
TickerMode, or
trueif no ancestor exists.