NotificationMessage class

Constructors

NotificationMessage({Duration? timeout, ActionNotification? actionNotification, required String message, required MessageTypes messageType, required IconData icon, dynamic showCloseButton = true})
Backdrop notification settings. The message, messageType and icon parameters are required.
const

Properties

actionNotification ActionNotification?
The notification action settings.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
The notification icon.
final
message String
The notification message.
final
messageType MessageTypes
The message type. It could be MessageTypes.messageInfo, MessageTypes.messageSuccess, MessageTypes.messageWarning and MessageTypes.messageError.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCloseButton → dynamic
final
timeout Duration?
Time the message is visible on the screen. If not informed, the notification remains on the screen until it is closed.
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