MessageModel class

Constructors

MessageModel({int? id, String? ownerName, required OwnerType ownerType, String? avatar, required String content, required int createdAt, bool showCreatedTime = false, bool isLast = false})
MessageModel.fromJson(Map<String, dynamic> json)
factory

Properties

avatar String?
final
content String
final
createdAt int
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
isLast bool
getter/setter pair
key GlobalKey<State<StatefulWidget>>
final
ownerName String?
final
ownerType OwnerType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCreatedTime bool
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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