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