BaseConnection constructor

BaseConnection()

Base connection class constructor

Implementation

BaseConnection() {
  _connectionString = kReleaseMode
      ? "${_protocol}192.168.0.2$_port"
      : "${_protocol}127.0.0.1$_port";
  // if (Platform.isIOS || Platform.isMacOS || Platform.isAndroid) {
  //   _dio.httpClientAdapter = NativeAdapter();
  // }
  dio.options.baseUrl = _connectionString;
}