MapNavigator constructor

MapNavigator({
  1. Key? key,
  2. required Map<String, MapItemBuilder> maps,
  3. required BonfireMapBuilder builder,
  4. String? initialMap,
  5. AnimatedSwitcherTransitionBuilder? transitionBuilder,
  6. AnimatedSwitcherLayoutBuilder? layoutBuilder,
  7. Duration transitionDuration = Durations.medium2,
  8. Curve transitionCurve = Curves.linear,
})

Implementation

MapNavigator({
  super.key,
  required this.maps,
  required this.builder,
  this.initialMap,
  this.transitionBuilder,
  this.layoutBuilder,
  this.transitionDuration = Durations.medium2,
  this.transitionCurve = Curves.linear,
}) : assert(maps.isNotEmpty);