getCategoryById method
- int categoryId
Retrieves a specific category by its id from this store.
Parameters
categoryId: The numeric category id.
Returns
- LandmarkCategory?: The category when found, otherwise
null.
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']);
}