contains method

bool contains(
  1. int storeId,
  2. int categoryId
)

Returns whether the given storeId and categoryId pair exists in the collection.

Parameters

  • storeId: The store id to check.
  • categoryId: The category id to check.

Returns

  • bool: true when the pair is present; otherwise false.

Implementation

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

  return resultString['result'];
}