SocketRequest.create constructor

SocketRequest.create(
  1. String event,
  2. Map<String, dynamic>? data
)

create is a factory constructor that creates a SocketRequest with the given event and data.

Implementation

SocketRequest.create(this.event, this.data);