VSocketRoomTypingModel class
A model class representing a user's typing status in a specific chat room.
Constructors
- VSocketRoomTypingModel({required VRoomTypingEnum status, required String roomId, String userName = "", String userId = ""})
-
const
-
VSocketRoomTypingModel.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMe → bool
-
Checks if the user is the current user.
no setter
- isRecording → bool
-
Checks if the user is recording.
no setter
- isStopTyping → bool
-
Checks if the user has stopped typing.
no setter
- isTyping → bool
-
Checks if the user is typing.
no setter
- roomId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → VRoomTypingEnum
-
final
- userId → String
-
final
- userName → String
-
final
Methods
-
copyWith(
{String? roomId, String? userId, String? name, VRoomTypingEnum? status}) → VSocketRoomTypingModel - Copies this object but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
Returns a string representation of the model.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- offline → const VSocketRoomTypingModel
- A predefined status for an offline user.
- recoding → const VSocketRoomTypingModel
- A predefined status for a user who is recording.
- typing → const VSocketRoomTypingModel
- A predefined status for a user who is typing.