VRoomTracker class

A singleton class that tracks all open rooms.

For any message received from server, this class checks if the room is open. If the room is open, it stops the message notification. When you open a room, you must call addToOpenRoom. When you close a room, you must call closeOpenedRoom.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToOpenRoom({required String roomId}) → void
Adds a room identified by roomId to the list of open rooms.
closeOpenedRoom(String roomId) → void
Removes the room identified by roomId from the list of open rooms.
isRoomOpen(String roomId) bool
Checks if the room identified by roomId is open.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRoomActive(CurrentRoom currentRoom) → void
Sets a room to active state.
setRoomInActive(CurrentRoom currentRoom) → void
Sets a room to inactive state.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VRoomTracker
Returns the singleton instance of VRoomTracker.
final