animateIn method
void
animateIn()
Starts the lightning animation (animates the overlay in).
This method will only work if:
- The controller is not disposed
- No animation is currently running
- The animation is not already completed
Implementation
void animateIn() {
if (_isDisposed || _animationController == null) return;
if (_animationController!.isAnimating ||
_animationController!.status == AnimationStatus.completed ||
_animationControllerReverse?.isAnimating == true) {
return;
}
_animationController!.forward();
}