NotifyMessage class
A message in a messaging-style notification.
Constructors
- NotifyMessage({required String text, NotifyPerson? sender, required DateTime time, NotifyImage? image, String? mimeType})
-
Creates a message for messaging-style notifications.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → NotifyImage?
-
Optional image attached to the message.
final
- mimeType → String?
-
MIME type for non-text content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → NotifyPerson?
-
The sender. Null means current user.
final
- text → String
-
Message text content.
final
- time → DateTime
-
When the message was sent.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serializes to a map for platform channel communication.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited