ScaleTween constructor
const
ScaleTween({
- Key? key,
- required Widget child,
- Duration duration = const Duration(milliseconds: 250),
- Duration reverseDuration = const Duration(milliseconds: 250),
- Duration delay = const Duration(milliseconds: 0),
- Curve curve = Curves.linear,
- Curve reverseCurve = Curves.linear,
- double begin = 0.2,
- double end = 1.0,
- bool reverse = false,
Creates a ScaleTween widget.
The child parameter is required and specifies the widget to be scaled.
The duration parameter specifies the duration of the forward animation.
The reverseDuration parameter specifies the duration of the reverse animation.
The delay parameter specifies the delay before starting the animation.
The curve parameter specifies the curve used for the forward animation.
The reverseCurve parameter specifies the curve used for the reverse animation.
The begin parameter specifies the initial scale value.
The end parameter specifies the final scale value.
The reverse parameter specifies whether to play the animation in reverse.
Implementation
const ScaleTween({
super.key,
required this.child,
this.duration = const Duration(milliseconds: 250),
this.reverseDuration = const Duration(milliseconds: 250),
this.delay = const Duration(milliseconds: 0),
this.curve = Curves.linear,
this.reverseCurve = Curves.linear,
this.begin = 0.2,
this.end = 1.0,
this.reverse = false,
});