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