DrivenSwitcher.map constructor
const
DrivenSwitcher.map(
- Widget atEnabled,
- Map<
WidgetEvent, Widget?> registry, { - Key? key,
- Duration? duration,
- Duration? reverseDuration,
- Curve? switchInCurve,
- Curve? switchOutCurve,
- AnimatedSwitcherTransitionBuilder? transitionBuilder,
- AnimatedSwitcherLayoutBuilder? layoutBuilder,
- bool? maintainKey,
Creates a DrivenSwitcher
with a map of custom event-widget associations
to map events to child widgets and optional animation parameters.
This constructor inherits the event-to-child mapping functionality from
DrivenChild.map
and allows specifying additional animation parameters
similar to the main constructor.
Implementation
const DrivenSwitcher.map(
super.atEnabled,
super.registry, {
super.key,
this.duration,
this.reverseDuration,
this.switchInCurve,
this.switchOutCurve,
this.transitionBuilder,
this.layoutBuilder,
this.maintainKey,
}) : super.map();