setTripAutoEndEnabled function
Implementation
Future<void> setTripAutoEndEnabled(bool shouldAutoEnd) async {
try {
await platform.invokeMethod('shouldTripAutoEnd', {
"shouldAutoEnd": shouldAutoEnd,
});
return;
} catch (e, stacktrace) {
if (kDebugMode) {
print("Error in setTripAutoStartEnabled");
print(e);
print(stacktrace);
}
}
}