stay method

  1. @override
Future<void> stay()
override

Animate to make the notification stay in screen.

Implementation

@override
Future<void> stay() async {
  currentAnimation =
      Tween(begin: dragDistance, end: 0.0).chain(_defaultCurve).animate(this);
  dragDistance = 0.0;

  await forward(from: 0.0);
  currentAnimation = null;
}