ElasticInDown constructor
ElasticInDown({
- dynamic key,
- required Widget child,
- Duration duration = const Duration(milliseconds: 1500),
- Duration delay = Duration.zero,
- dynamic controller()?,
- bool manualTrigger = false,
- bool animate = true,
- double from = 200,
- double to = 100,
- dynamic onFinish(
- AnimateDoDirection direction
- Curve curve = Curves.elasticOut,
Implementation
ElasticInDown(
{key,
required this.child,
this.duration = const Duration(milliseconds: 1500),
this.delay = Duration.zero,
this.controller,
this.manualTrigger = false,
this.animate = true,
this.from = 200,
this.to = 100,
/// Is marked as optional, but I have plans to use it later
this.onFinish,
this.curve = Curves.elasticOut})
: super(key: key) {
if (manualTrigger == true && controller == null) {
throw FlutterError('If you want to use manualTrigger:true, \n\n'
'Then you must provide the controller property, that is a callback like:\n\n'
' ( controller: AnimationController) => yourController = controller \n\n');
}
}