resetReconnectTask method Null safety

void resetReconnectTask()

Implementation

void resetReconnectTask() {
  final config = reconnectConfig;
  if (config != null) {
    reconnectTask = ReconnectTask(config);
  }
}