SingleTickerProviderBLoCMixin mixin
为BLoC提供一个简单的TickerProvider
跟State提供的TickerProvider有点区别, SingleTickerProviderBLoCMixin去掉了对 动画是否在屏幕外的检测, 因为BuildContext无法获取
- Superclass Constraints
- Implemented types
Properties
Methods
-
createTicker(
TickerCallback onTick) → Ticker -
Creates a ticker with the given callback.
override
-
dispose(
) → void -
inherited
-
init(
) → FutureOr< void> -
初始化
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onErrorRetry(
) → Future< void> -
重试
inherited
-
reset(
) → void -
重置BLoC, 发射初始值
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited