Constructors
-
ChatState({required int roomId, ChatRoom? room, @Default.new(<int, User>{}) Map<int, User> roomUsers, @Default.new(<ChatMessage>[]) List<ChatMessage> messages, User? me, @Default.new(false) bool loading})
-
const
factory
-
ChatState.fromJson(Map<String, dynamic> json)
-
factory
Properties
-
copyWith
→ $ChatStateCopyWith<ChatState>
-
Create a copy of ChatState
with the given fields replaced by the non-null parameter values.
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>
-
Serializes this ChatState to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited