ToastFuture class

The class for managing the overlay and dismiss.

Use the dismiss to dismiss toast. When the Toast is dismissed, call onDismiss if specified.

Constructors

ToastFuture.create(Duration duration, OverlayEntry _entry, VoidCallback? _onDismiss, GlobalKey<StyledToastWidgetState> _containerKey)

Properties

containerKey GlobalKey<State<StatefulWidget>>
Get the _containerKey
no setter
entry OverlayEntry
Get the _entry.
no setter
hashCode int
The hash code for this object.
no setterinherited
isShow bool
Get the _isShow.
no setter
onDismiss VoidCallback?
Get the _onDismiss.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dismiss({bool showAnim = false}) Future<void>
Dismiss toast overlay.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited