addCategory method

void addCategory({
  1. required int overlayId,
  2. required int categoryId,
})

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:

Implementation

void addCategory({
  required final int overlayId,
  required final int categoryId,
}) {
  objectMethod(
    pointerId,
    'OverlayMutableCollection',
    'addCategory',
    args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
  );
}