DraftModeUIToast class
Ephemeral overlay message displayed at the bottom of the screen.
Use the static show entry point to present a short-lived toast. Only one toast is visible at a time — calling show while a previous toast is still on screen dismisses it before inserting the new one.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
show(
String text, {BuildContext? context, Duration duration = const Duration(seconds: 2), DraftModeUIToastStyle style = DraftModeUIToastStyle.notice}) → void -
Displays a toast with the given
text.