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