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