MessageModel class
Constructors
- MessageModel({String id = '', required String code, required String content, required String senderId, required Timestamp createdOn, bool isMessageRead = false})
-
MessageModel.fromMap(Map<
String, dynamic> map) -
factory
Properties
- code ↔ String
-
getter/setter pair
- content ↔ String
-
getter/setter pair
- createdOn ↔ Timestamp
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pair
- isMessageRead ↔ bool
-
getter/setter pair
- isMine → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → ChatUserModel
-
no setter
Methods
-
copyWith(
{String? id, String? code, String? content, String? senderId, Timestamp? createdOn, bool? isMessageRead}) → MessageModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited