containsCategory method
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:
- contains - Check for an OverlayInfo by its UID.
- OverlayCategory.uid - Retrieve the unique identifier of a category.
- OverlayCategory.uid - Information about an overlay category.
- OverlayInfo.getCategory - Retrieve a category by its identifier.
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'];
}