all static method
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;
}