getOverlayById method

OverlayEntry? getOverlayById(
  1. String id
)
inherited

Get OverlayEntry by id, if overlay with this id exists, else it will return null

Implementation

OverlayEntry? getOverlayById(String id) {
  if (_overlays.containsKey(id)) {
    return _overlays[id];
  }
  return null;
}