ItineraryPrmSwitchData class
State and callbacks for customizing the PMR (wheelchair) switch in
ItineraryWidget. Call onChanged to apply the same logic as the default
switch (updates wheelchair in ItineraryWidgetController.selectedRuleNames and
recalculates the itinerary).
Constructors
-
ItineraryPrmSwitchData({required bool isEnabled, required ValueChanged<
bool> onChanged, required Widget buildDefault()}) -
const
Properties
- buildDefault → Widget Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnabled → bool
-
Whether PRM / wheelchair routing is enabled.
final
-
onChanged
→ ValueChanged<
bool> -
Toggle PRM and recalculate the itinerary.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited