closeDrawer<T> function
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);
}