withLifecycleAnimationController method
动画控制器
Implementation
AnimationController withLifecycleAnimationController({
double? value,
Duration? duration,
Duration? reverseDuration,
String? debugLabel,
double lowerBound = 0.0,
double upperBound = 1.0,
AnimationBehavior animationBehavior = AnimationBehavior.normal,
Object? key,
}) {
return withLifecycleExtData<AnimationController>(
factory2: (l) => AnimationController(
value: value,
duration: duration,
reverseDuration: reverseDuration,
debugLabel: debugLabel,
lowerBound: lowerBound,
upperBound: upperBound,
animationBehavior: animationBehavior,
vsync: l.tickerProvider,
),
key: FlexibleKey(AnimationController, value, duration, reverseDuration,
lowerBound, upperBound, animationBehavior, key));
}