FreeFireSocketService<T> constructor

FreeFireSocketService<T>(
  1. SocketConfig _socketConfig
)

Creates a FreeFireSocketService instance with the specified socketConfig.

Throws a FreeFireSocketException if T is dynamic, as it's not supported.

Implementation

FreeFireSocketService(this._socketConfig) {
  if (T == dynamic) {
    throw FreeFireSocketException('Type cannot be of type dynamic');
  }
}