setPrmEnabled method
- bool value
Enables or disables PRM / wheelchair routing and recalculates the route.
Implementation
void setPrmEnabled(bool value) {
_isPrmEnabled = value;
if (value) {
if (!_selectedRuleNames.contains("wheelchair")) {
_selectedRuleNames.add("wheelchair");
}
} else {
_selectedRuleNames.remove("wheelchair");
}
_recalculateItinerary();
}