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