Pulse constructor
Pulse({
- dynamic key,
- required Widget child,
- Duration duration = const Duration(milliseconds: 1000),
- Duration delay = const Duration(milliseconds: 0),
- bool infinite = false,
- dynamic controller()?,
- bool manualTrigger = false,
- bool animate = true,
- dynamic onFinish(
- AnimateDoDirection direction
- Curve curve = Curves.easeOut,
Implementation
Pulse(
{key,
required this.child,
this.duration = const Duration(milliseconds: 1000),
this.delay = const Duration(milliseconds: 0),
this.infinite = false,
this.controller,
this.manualTrigger = false,
this.animate = true,
this.onFinish,
this.curve = Curves.easeOut})
: 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');
}
}