animated<T> method
Implementation
RegistryEntry<AnimationController> animated<T>({
Duration? duration,
Duration? reverseDuration,
AnimationBehavior? animationBehavior,
String? debugLabel,
double? lowerBound,
double? upperBound,
double? value,
}) {
return this.ticked(
(context, vsync) {
final result = AnimationController(
duration: duration,
animationBehavior: animationBehavior ?? AnimationBehavior.normal,
debugLabel: debugLabel,
lowerBound: lowerBound ?? 0.0,
upperBound: upperBound ?? 1.0,
reverseDuration: reverseDuration,
value: value,
vsync: vsync,
);
return DisposedValue(
value: result,
dispose: () => result.dispose(),
);
},
);
}