closeDrawer<T> function

Future<void> closeDrawer<T>(
  1. BuildContext context, [
  2. T? result
])

Implementation

Future<void> closeDrawer<T>(BuildContext context, [T? result]) {
  final data = Data.maybeOf<_MountedOverlayEntryData>(context);
  assert(data != null, 'No DrawerEntryWidget found in the widget tree');
  return data!.state.close(result);
}