Widget.navigationBar constructor Null safety

const Widget.navigationBar(
  1. {Key? key,
  2. Duration? animationDuration,
  3. @Default(0) int selectedIndex,
  4. required List<Widget> destinations,
  5. IntSelectionCallback? onDestinationSelected,
  6. Color? backgroundColor,
  7. double? elevation,
  8. Color? shadowColor,
  9. Color? surfaceTintColor,
  10. Color? indicatorColor,
  11. ShapeBorder? indicatorShape,
  12. double? height,
  13. NavigationDestinationLabelBehavior? labelBehavior}
)

Implementation

const factory Widget.navigationBar({
  Key? key,
  Duration? animationDuration,
  @Default(0) int selectedIndex,
  required List<Widget> destinations,
  IntSelectionCallback? onDestinationSelected,
  Color? backgroundColor,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  Color? indicatorColor,
  ShapeBorder? indicatorShape,
  double? height,
  NavigationDestinationLabelBehavior? labelBehavior,
}) = NavigationBar;