MessageModel class

Constructors

MessageModel({int? id, required OwnerType ownerType, required String? ownerName, String? avatar, required String content, required int createdAt})
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
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