ChatState class

Annotations
  • @freezed

Constructors

ChatState({required int roomId, ChatRoom? room, @Default(<int, User>{}) Map<int, User> roomUsers, @Default(<ChatMessage>[]) List<ChatMessage> messages, User? me, @Default(false) bool loading})
const
factory
ChatState.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $ChatStateCopyWith<ChatState>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
loading bool
no setterinherited
me → User?
no setterinherited
messages List<ChatMessage>
no setterinherited
room → ChatRoom?
no setterinherited
roomId int
no setterinherited
roomUsers Map<int, User>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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