NavigationDrawer constructor Null safety

const NavigationDrawer(
  1. {Key? key,
  2. required List<Widget> children,
  3. Color? backgroundColor,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. double? elevation,
  7. ValueChanged<int>? onDestinationSelected,
  8. int? selectedIndex = 0}
)

Creates a Material Design Navigation Drawer component.

Implementation

const NavigationDrawer({
  super.key,
  required this.children,
  this.backgroundColor,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.onDestinationSelected,
  this.selectedIndex = 0,
});