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
anddata
.
Properties
Methods
-
copyWith(
{String? event, Map< String, dynamic> ? data}) → SocketRequest -
copyWith is a method that creates a new SocketRequest with the given
event
anddata
. -
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