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