addCategory method

void addCategory(
  1. LandmarkCategory category
)

Adds a new category to this landmark store.

After a successful call the provided category becomes part of this store and should be used to group landmarks within this store.

Parameters

  • category: The LandmarkCategory instance to add. The category must have a non-empty name.

Implementation

void addCategory(final LandmarkCategory category) {
  objectMethod(
    pointerId,
    'LandmarkStore',
    'addCategory',
    args: category.pointerId,
  );
}