MapNavigator constructor
MapNavigator({
- Key? key,
- required Map<
String, MapItemBuilder> maps, - required BonfireMapBuilder builder,
- String? initialMap,
- AnimatedSwitcherTransitionBuilder? transitionBuilder,
- AnimatedSwitcherLayoutBuilder? layoutBuilder,
- Duration transitionDuration = Durations.medium2,
- 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);