client method Null safety

ConnectMeClient client(
  1. dynamic address,
  2. {Map<String, dynamic> headers = const <String, dynamic>{},
  3. int port = 0,
  4. bool autoReconnect = true,
  5. int queryTimeout = 30,
  6. dynamic onLog(
    1. String
    )?,
  7. dynamic onError(
    1. String,
    2. [StackTrace]
    )?,
  8. dynamic onConnect(
      )?,
    1. dynamic onDisconnect(
        )?}
      )

      Implementation

      static ConnectMeClient client(dynamic address, {
      	Map<String, dynamic> headers = const <String, dynamic>{},
      	int port = 0,
      	bool autoReconnect = true,
      	int queryTimeout = 30,
      	Function(String)? onLog,
      	Function(String, [StackTrace])? onError,
      	Function()? onConnect,
      	Function()? onDisconnect,
      }) {
      	return ConnectMeClient._(address, headers, port, autoReconnect, queryTimeout, onLog, onError, onConnect, onDisconnect);
      }