NetworkManager constructor

NetworkManager({
  1. SessionManager? sessionManager,
})

Implementation

factory NetworkManager({SessionManager? sessionManager}) {
  if (sessionManager != null) {
    _instance.sessionManager = sessionManager;
  } else {
    _instance.sessionManager ??= SessionManager();
  }
  return _instance;
}