remove method
remove overlayEntry
Implementation
Future<void> remove() async {
if (_isDisposed) return;
_isDisposed = true;
timer?.cancel();
timer = null;
if (_animationController.status != AnimationStatus.dismissed) {
await _animationController.reverse();
}
_overlayEntry?.remove();
_overlayEntry = null;
if (!(completer?.isCompleted ?? true)) {
completer?.complete();
}
_animationController.dispose();
}