contains method

bool contains(
  1. int overlayId
)

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:

Implementation

bool contains(final int overlayId) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'OverlayCollection',
    'contains',
    args: overlayId,
  );
  return resultString['result'];
}