DrivenSwitcher.map constructor

const DrivenSwitcher.map(
  1. Widget atEnabled,
  2. Map<WidgetEvent, Widget?> registry, {
  3. Key? key,
  4. Duration? duration,
  5. Duration? reverseDuration,
  6. Curve? switchInCurve,
  7. Curve? switchOutCurve,
  8. AnimatedSwitcherTransitionBuilder? transitionBuilder,
  9. AnimatedSwitcherLayoutBuilder? layoutBuilder,
  10. 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();