ItineraryWidgetData class

Props passed to ItineraryWidgetBuilder when WemapMap.itineraryWidgetBuilder is set.

controller is the single source of truth for itinerary state and actions. For the default SDK UI, call ItineraryWidgetDataBuild.buildDefault or ItineraryWidgetDataBuild.build with section builders. For a fully custom UI, listen to controller (e.g. with ListenableBuilder) and call its action methods.

Available extensions

Constructors

ItineraryWidgetData({required ItineraryWidgetController controller})
const

Properties

controller ItineraryWidgetController
Itinerary state and actions for default or fully custom UI.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build({ItineraryPrmSwitchBuilder? prmSwitchBuilder, ItineraryRulesBuilder? rulesBuilder}) Widget

Available on ItineraryWidgetData, provided by the ItineraryWidgetDataBuild extension

Renders ItineraryWidget, optionally with custom prmSwitchBuilder and/or rulesBuilder. Omitted builders fall back to SDK defaults.
buildDefault() Widget

Available on ItineraryWidgetData, provided by the ItineraryWidgetDataBuild extension

Renders the built-in SDK ItineraryWidget with these props.
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