addLandmark method
Adds a landmark copy to this store under the specified category.
If the landmark already exists in the store its category membership will be updated.
Parameters
landmark: The Landmark to add (a copy is stored).categoryId: The category id where the landmark will be stored. Defaults to uncategorizedLandmarkCategId.
Implementation
void addLandmark(
final Landmark landmark, {
final int categoryId = LandmarkStore.uncategorizedLandmarkCategId,
}) {
objectMethod(
pointerId,
'LandmarkStore',
'addLandmark',
args: <String, dynamic>{
'landmark': landmark.pointerId,
'categoryId': categoryId,
},
);
}