getTripAutoEndEnabled function

Future<bool> getTripAutoEndEnabled()

Implementation

Future<bool> getTripAutoEndEnabled() async {
  try {
    bool isEnabled = await platform.invokeMethod('isTripAutoEndEnabled');
    return isEnabled;
  } catch (e, stacktrace) {
    if (kDebugMode) {
      print("Error in isTripAutoEndEnabled");
      print(e);
      print(stacktrace);
    }
    return false;
  }
}