Message class
data of each message
Constructors
- Message({String? id, int? time, String? message, MessageType? type, MessageContentType? contentType = MessageContentType.text, String? sender, Uint8List? imageData})
- Message.fromJson(String source)
-
factory
-
Message.fromMap(Map<
String, dynamic> ? map) -
factory
Properties
- contentType ↔ MessageContentType?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
getter/setter pair
- imageData ↔ Uint8List?
-
getter/setter pair
- message ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ String?
-
getter/setter pair
- time ↔ int?
-
getter/setter pair
- type ↔ MessageType?
-
getter/setter pair
Methods
-
copyWith(
{String? id, int? time, String? message, MessageType? type, MessageContentType? contentType, String? sender, Uint8List? imageData}) → Message -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override