SpinnerScope class
Provides shared spinner animation state to descendants.
This allows all spinner icons to share a single animation controller, avoiding the performance overhead of many independent animations. Other widgets can access the notifier via SpinnerScope.of to piggyback on the same tick.
Constructors
-
SpinnerScope({bool active = true, List<
String> frames = runningFrames, Duration frameDuration = const Duration(milliseconds: 80), required Component child, Key? key}) -
const
Properties
Methods
-
createElement(
) → StatefulElement -
inherited
-
createState(
) → State< SpinnerScope> - Creates the mutable state for this component.
-
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
Static Methods
-
of(
BuildContext context) → SpinnerNotifier? - Returns the SpinnerNotifier from the closest ancestor, or null.