get method

ZoneInfo? get(
  1. String id
)

Gets the zone info for the given ID.

Returns null if the zone is not known (hasn't been scanned yet).

Example

final buttonZone = zone.get('my-button');
if (buttonZone?.inBounds(mouseMsg) ?? false) {
  // Button was clicked!
}

Implementation

ZoneInfo? get(String id) => _zones[id];