withLifecycleAnimationControllerUnbounded method

AnimationController withLifecycleAnimationControllerUnbounded({
  1. double value = 0.0,
  2. Duration? duration,
  3. Duration? reverseDuration,
  4. String? debugLabel,
  5. AnimationBehavior animationBehavior = AnimationBehavior.normal,
  6. Object? key,
})

动画控制器

Implementation

AnimationController withLifecycleAnimationControllerUnbounded({
  double value = 0.0,
  Duration? duration,
  Duration? reverseDuration,
  String? debugLabel,
  AnimationBehavior animationBehavior = AnimationBehavior.normal,
  Object? key,
}) {
  return withLifecycleExtData<AnimationController>(
      factory2: (l) => AnimationController.unbounded(
            value: value,
            duration: duration,
            reverseDuration: reverseDuration,
            debugLabel: debugLabel,
            animationBehavior: animationBehavior,
            vsync: l.tickerProvider,
          ),
      key: FlexibleKey(AnimationController, 'Unbounded', value, duration,
          reverseDuration, animationBehavior, key));
}