isWifiOnlySyncEnabled method
Implementation
Future<bool> isWifiOnlySyncEnabled() async {
try {
bool wifiOnly = await kruzr_comm.isFileSyncOnlyOnWifiEnabled();
return wifiOnly;
} on PlatformException catch (e, stackTrace) {
if (kDebugMode) {
print("Error in isWifiOnlySyncEnabled");
print(stackTrace);
print(e);
}
return Future.error({"code": e.code, "message": e.message, "details": e.details});
} on Exception catch (e, stackTrace) {
if (kDebugMode) {
print("Error in isWifiOnlySyncEnabled");
print(stackTrace);
print(e);
}
return Future.error(PlatformException(code: "PLUGIN_ERROR", message: e.toString()));
}
}