triggerAnimation method

  1. @override
void triggerAnimation({
  1. bool restart = false,
})
override

Trigger the animation.

By default if animation is running and triggerAnimation is called again, it will be ignored.

If animation is dismissed or completed, animation will be inverted and started.

When restart parameter is set to true, animation will be reset and restarted.

Implementation

@override
void triggerAnimation({bool restart = false}) {
  _animatorState!.triggerAnimation(restart: restart);
}