addCategory method
Add a single category (by id) from an online overlay to the collection.
Parameters
overlayId: The parent overlay UID.categoryId: The category identifier inside the overlay.
See also:
- OverlayInfo.uid - Retrieve the unique identifier of an overlay.
- OverlayCategory.uid - Retrieve the unique identifier of a category.
- containsCategory - Check for a specific OverlayCategory within an OverlayInfo.
Implementation
void addCategory({
required final int overlayId,
required final int categoryId,
}) {
objectMethod(
pointerId,
'OverlayMutableCollection',
'addCategory',
args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
);
}