removeCategory method

GemError removeCategory({
  1. required int overlayId,
  2. required int categoryId,
})

Remove a category (by id) from an overlay in the collection.

Parameters

  • overlayId: Parent overlay UID.
  • categoryId: Category identifier to remove.

Returns

See also:

Implementation

GemError removeCategory({
  required final int overlayId,
  required final int categoryId,
}) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'OverlayMutableCollection',
    'removeCategory',
    args: <String, int>{'overlayId': overlayId, 'categoryId': categoryId},
  );

  return GemErrorExtension.fromCode(resultString['result']);
}