CustomAnimation<T> constructor
const
CustomAnimation<T> ({
- required AnimatedWidgetBuilder<
T> builder, - required Animatable<
T> tween, - CustomAnimationControl control = CustomAnimationControl.play,
- Curve curve = Curves.linear,
- Duration duration = const Duration(seconds: 1),
- Duration delay = Duration.zero,
- double startPosition = 0.0,
- Widget? child,
- AnimationStatusListener? animationStatusListener,
- int? fps,
- bool developerMode = false,
- Key? key,
Creates a new CustomAnimation widget. See class documentation for more information.
Implementation
const CustomAnimation({
required this.builder,
required this.tween,
this.control = CustomAnimationControl.play,
this.curve = Curves.linear,
this.duration = const Duration(seconds: 1),
this.delay = Duration.zero,
this.startPosition = 0.0,
this.child,
this.animationStatusListener,
this.fps,
this.developerMode = false,
Key? key,
}) : assert(startPosition >= 0 && startPosition <= 1,
'The property startPosition must have a value between 0.0 and 1.0.'),
super(key: key);