vsync static method
Encapsulates an AnimationController.
Implementation
@factory
static GetVsyncDouble vsync({
double? initialValue,
Duration? duration,
Duration? reverseDuration,
AnimationBehavior? animationBehavior,
String? debugLabel,
double? lowerBound,
double? upperBound,
bool bounded = true,
}) {
return GetVsyncDouble._(
Vsync.build(
(vsync) => _AnimationControllerStyled(
vsync: vsync,
value: initialValue,
lowerBound: lowerBound ?? (bounded ? 0.0 : double.negativeInfinity),
upperBound: upperBound ?? (bounded ? 1.0 : double.infinity),
duration: duration,
reverseDuration: reverseDuration,
animationBehavior:
animationBehavior ??
(bounded ? AnimationBehavior.normal : AnimationBehavior.preserve),
debugLabel: debugLabel,
),
),
);
}