contains method
Check whether a given OverlayInfo UID is present in the collection.
Parameters
overlayId: The overlay UID to check for.
Returns
- True when the overlay is present, false otherwise.
Also see:
- containsCategory - Check for a specific OverlayCategory within an OverlayInfo.
- OverlayInfo.uid - Retrieve the unique identifier of an overlay.
Implementation
bool contains(final int overlayId) {
final OperationResult resultString = objectMethod(
pointerId,
'OverlayCollection',
'contains',
args: overlayId,
);
return resultString['result'];
}