WarcraftToast class
Warcraft-themed transient notification, shown via the static show API.
Multiple toasts at the same WarcraftToastPosition stack, newest toward the screen edge; each position is capped at WarcraftToast.maxStacked simultaneous toasts, evicting the oldest when exceeded.
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(
BuildContext context, {required String message, WarcraftToastType type = WarcraftToastType.defaultType, WarcraftFaction faction = WarcraftFaction.defaultFaction, WarcraftToastPosition position = WarcraftToastPosition.bottomRight, Duration duration = const Duration(seconds: 3), String dismissLabel = 'Dismiss notification'}) → WarcraftToastController -
Shows a toast anchored at
position.durationcontrols how long it stays visible before auto-dismissing; tapping a toast dismisses it immediately.
Constants
- maxStacked → const int
- Maximum number of toasts stacked at a single WarcraftToastPosition simultaneously; the oldest toast is evicted once this is exceeded.