PrismToastMessage class
One toast shown by PrismToast.show.
- Annotations
Constructors
- PrismToastMessage({required String message, PrismToastType type = PrismToastType.info, String? title, Duration duration = const Duration(seconds: 3), String? actionLabel, VoidCallback? onAction})
-
Creates a toast payload.
const
Properties
- actionLabel → String?
-
Optional action button label.
final
- duration → Duration
-
How long the toast stays visible.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Main toast text.
final
- onAction → VoidCallback?
-
Invoked when the user taps actionLabel.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
Optional bold lead-in above message.
final
- type → PrismToastType
-
Visual/semantic type; drives icon and colors.
final
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