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