INNER CODE UNIT · Dart
ToastFuture
OpenFlutter/flutter_oktoast · lib/src/core/toast_future.dart:4
class ToastFuture {
ToastFuture._(
this._entry,
this._onDismiss,
this._containerKey,
this.animationDuration,
) {
_entry.addListener(_mountedListener);
}
final OverlayEntry _entry;
final VoidCallback? _onDismiss;
final GlobalKey<_ToastContainerState> _containerKey;
final Duration animationDuration;
Timer? timer;
bool _isShow = false;
bool _dismissed = false;