ElasticIn constructor

ElasticIn({
  1. dynamic key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 1500),
  4. Duration delay = Duration.zero,
  5. dynamic controller(
    1. AnimationController
    )?,
  6. bool manualTrigger = false,
  7. bool animate = true,
  8. dynamic onFinish(
    1. AnimateDoDirection direction
    )?,
  9. Curve curve = Curves.elasticOut,
})

Implementation

ElasticIn(
    {key,
    required this.child,
    this.duration = const Duration(milliseconds: 1500),
    this.delay = Duration.zero,
    this.controller,
    this.manualTrigger = false,
    this.animate = true,
    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');
  }
}