useAnimationController function
AnimationController
useAnimationController({
- Duration? duration,
- Duration? reverseDuration,
- String? debugLabel,
- double initialValue = 0,
- double lowerBound = 0,
- double upperBound = 1,
- TickerProvider? vsync,
- AnimationBehavior animationBehavior = AnimationBehavior.normal,
Implementation
AnimationController useAnimationController({
Duration? duration,
Duration? reverseDuration,
String? debugLabel,
double initialValue = 0,
double lowerBound = 0,
double upperBound = 1,
TickerProvider? vsync,
AnimationBehavior animationBehavior = AnimationBehavior.normal,
}) {
vsync ??= useSingleTickerProvider();
return use(
_AnimationControllerHook(
duration: duration,
reverseDuration: reverseDuration,
debugLabel: debugLabel,
initialValue: initialValue,
lowerBound: lowerBound,
upperBound: upperBound,
vsync: vsync,
animationBehavior: animationBehavior,
),
);
}