SocketRequest class

SocketRequest is the request to the server. It contains the event and the data to be sent to the server. The data is a map of key-value pairs.

Constructors

SocketRequest.create(String event, Map<String, dynamic>? data)
create is a factory constructor that creates a SocketRequest with the given event and data.

Properties

data → Map<String, dynamic>?
The data to be sent to the server.
final
event → String
The event to be sent to the server.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? event, Map<String, dynamic>? data}) → SocketRequest
copyWith is a method that creates a new SocketRequest with the given event and data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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