setTripAutoEndEnabled function

Future<void> setTripAutoEndEnabled(
  1. bool shouldAutoEnd
)

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);
    }
  }
}