Message class
Constructors
- Message({String? title, bool expandable = true, String? description, required FlashStatus status, String? actionLabel, void onActionPressed()?, bool pinned = false, Key? key, Color? color, IconData? icon, Duration displayDuration = const Duration(seconds: 10)})
- Message containe all information that is needed to display a flash message.
Properties
- actionLabel → String?
-
final
- color → Color?
-
final
- description → String?
-
final
- displayDuration → Duration
-
displayDuration is the duration that the message will be displayed.
final
- expandable → bool
-
When expandable is true, flash just show the title and when you hover on it more details are shown with animation.
pinned messages are infinitely displayed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- key ↔ Key?
-
getter/setter pair
- onActionPressed → (void Function()?)
-
final
- pinned → bool
-
When expandable is true, flash just show the title and when you hover on it more details are shown with animation.
pinned messages are infinitely displayed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → FlashStatus
-
status is just for preffred color, text, icon, etc.
final
- title → String?
-
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