isFileSyncOnlyOnWifiEnabled function
Implementation
Future<bool> isFileSyncOnlyOnWifiEnabled() async {
try {
bool useWIFIOnly = await platform.invokeMethod(
'isFileSyncOnlyOnWifiEnabled',
);
return useWIFIOnly;
} on PlatformException catch (e, stacktrace) {
if (kDebugMode) {
print("Error in isFileSyncOnlyOnWifiEnabled");
print(e);
print(stacktrace);
}
rethrow;
} catch (e, stacktrace) {
if (kDebugMode) {
print("Error in isFileSyncOnlyOnWifiEnabled");
print(e);
print(stacktrace);
}
throw PlatformException(code: "PLUGIN_ERROR", message: e.toString());
}
}