ChatRoom class

Constructors

ChatRoom({required String id, required String name, required ChatType? type, required List<String> members, required DateTime? createdAt, required DateTime? updatedAt, required List<Message> messages})
const
ChatRoom.fromJson(String source)
factory
ChatRoom.fromMap(Map<String, dynamic> map)
factory

Properties

createdAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
members List<String>
final
messages List<Message>
final
name String
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
type ChatType?
final
updatedAt DateTime?
final

Methods

copyWith({String? id, String? name, ChatType? type, List<String>? members, DateTime? createdAt, DateTime? updatedAt, List<Message>? messages}) ChatRoom
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.
inherited

Operators

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