showComicNavigationDrawer<T> function

Future<T?> showComicNavigationDrawer<T>(
  1. BuildContext context, {
  2. required WidgetBuilder builder,
  3. bool useRootNavigator = true,
  4. String? closeLabel,
})

Raises a navigation drawer from the start edge, the window's full height, over a scrim: the phone's form of the side navigation. Escape, back and a press on the scrim close it, and focus returns to what opened it. Pop it with a value (the destination chosen) from inside, as a ComicNavigationDrawer's onDestinationSelected does.

showComicNavigationDrawer<int>(context, builder: (context) => ComicNavigationDrawer(destinations: items, selectedIndex: at, onDestinationSelected: (i) => Navigator.of(context).pop(i)))

Implementation

Future<T?> showComicNavigationDrawer<T>(
  BuildContext context, {
  required WidgetBuilder builder,
  bool useRootNavigator = true,
  String? closeLabel,
}) => _raise<T>(
  context,
  builder,
  drawer: true,
  useRootNavigator: useRootNavigator,
  closeLabel: closeLabel,
);