rememberAnimationControllerUnbounded method
AnimationController
rememberAnimationControllerUnbounded({})
动画控制器
- 任何参数发生变化就会产生新的
Implementation
AnimationController rememberAnimationControllerUnbounded({
double value = 0.0,
Duration? duration,
Duration? reverseDuration,
String? debugLabel,
AnimationBehavior animationBehavior = AnimationBehavior.normal,
FutureOr<void> Function(AnimationController)? onDispose,
Object? key,
}) {
return remember<AnimationController>(
factory2: (l) => AnimationController.unbounded(
value: value,
duration: duration,
reverseDuration: reverseDuration,
debugLabel: debugLabel,
animationBehavior: animationBehavior,
vsync: l.tickerProvider,
),
key: FlexibleKey('Unbounded', value, duration, reverseDuration,
animationBehavior, key),
onDispose: (c) {
c.dispose();
onDispose?.call(c);
},
);
}