containsCategory method

bool containsCategory(
  1. int overlayId,
  2. int categoryId
)

Check whether a specific OverlayCategory from an OverlayInfo is present in the collection.

Parameters

  • overlayId: The parent overlay UID.
  • categoryId: The category identifier within that overlay.

Returns

  • True when the overlay/category pair is present, false otherwise.

Also see:

Implementation

bool containsCategory(final int overlayId, final int categoryId) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'OverlayCollection',
    'containsCategory',
    args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
  );
  return resultString['result'];
}