all static method

Iterable<OverlayCloser> Function(Iterable<OverlayCloser> closers) all({
  1. String? id,
})

A selector that returns all overlays that match the given id.

If id is null, it returns all overlays.

Example:

context.close(Overlays.all(id: 'my-id'));

Implementation

static Iterable<OverlayCloser> Function(Iterable<OverlayCloser> closers) all({
  String? id,
}) {
  return (Iterable<OverlayCloser> closers) =>
      id != null ? closers.byId(id) : closers;
}