addStoreCategoryId method

GemError addStoreCategoryId(
  1. int storeId,
  2. int categoryId
)

Adds a single category id to the specified store entry in the collection.

Parameters

  • storeId: The target store id.
  • categoryId: The category id to add.

Returns

Implementation

GemError addStoreCategoryId(final int storeId, final int categoryId) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LandmarkStoreCollection',
    'addStoreCategoryId',
    args: <String, int>{'storeId': storeId, 'categoryId': categoryId},
    dependencyId: _mapPointerId,
  );

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