TextMessage class

A data class to hold content for each text message

Constructors

TextMessage(String text, int timestamp, bool isSelf)
TextMessage.createForLocalUser(String text, int timestamp)
TextMessage.createForRemoteUser(String text, int timestamp)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isSelf bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
text String
read / write
timestamp int
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited