ReactrSingleTickerProviderStateMixin mixin
A mixin that provides a TickerProvider for a single Ticker for Reactr controllers.
This mixin is used to provide the TickerProvider functionality needed by AnimationController when it's being used within a ReactrController.
Example usage:
class MyController extends ReactrController with ReactrSingleTickerProviderStateMixin {
late AnimationController animationController;
@override
void onInit() {
super.onInit();
animationController = AnimationController(
vsync: this,
duration: Duration(seconds: 1),
);
}
@override
void onClose() {
animationController.dispose();
super.onClose();
}
}
- Superclass constraints
- Implemented types
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
-
createTicker(
TickerCallback onTick) → Ticker -
Creates a ticker with the given callback.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
) → void -
override
-
onInit(
) → void -
inherited
-
onReady(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited