CyDriveClient constructor
Implementation
CyDriveClient(this.serverHost, {Account? account, String? deviceName}) {
_baseAddr = "http://$serverHost:6454";
getDeviceId().then((value) => deviceId = value);
if (deviceName != null) {
this.deviceName = deviceName;
} else {
getDeviceName().then((value) => this.deviceName = value);
}
_cookies = CookieManager(CookieJar());
_client.interceptors.add(_cookies);
_client.options.baseUrl = _baseAddr;
_client.options.connectTimeout = 2000;
_account = account;
}