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