getCategoryById method

LandmarkCategory? getCategoryById(
  1. int categoryId
)

Retrieves a specific category by its id from this store.

Parameters

  • categoryId: The numeric category id.

Returns

Implementation

LandmarkCategory? getCategoryById(final int categoryId) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LandmarkStore',
    'getCategoryById',
    args: categoryId,
  );

  if (resultString['result'] == -1) {
    return null;
  }

  return LandmarkCategory.init(resultString['result']);
}