Message class

Represents an SMS message received by the application.

Constructors

Message({required String body, required String sender, required DateTime timeReceived})
Creates a Message instance.
const
Message.fromList(List data)
Creates a Message instance from a list of objects received from the broadcast stream of the event channel.
factory

Properties

body String
The body/content of the received message.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender String
The sender's contact address (phone number).
final
timeReceived DateTime
The timestamp when the SMS was received.
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