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