addLandmark method
Add a landmark to the specified category in the landmark store.
If the landmark already exists in the landmark store, only the category info is updated.
Parameters
- IN landmark The landmark to be added to the landmark store in the specified category.
- IN categoryId The ID of the category where the landmark will be added.
Throws
- An exception if it fails.
Implementation
void addLandmark(
final Landmark landmark, {
final int categoryId = LandmarkStore.uncategorizedLandmarkCategId,
}) {
objectMethod(
_pointerId,
'LandmarkStore',
'addLandmark',
args: <String, dynamic>{
'landmark': landmark.pointerId,
'categoryId': categoryId,
},
);
}