getLandmark method
- int landmarkId
Retrieves a landmark by its id from this store.
Parameters
landmarkId: The numeric id of the landmark to retrieve.
Returns
- Landmark?: The landmark instance when found, otherwise
null.
Implementation
Landmark? getLandmark(final int landmarkId) {
final OperationResult resultString = objectMethod(
pointerId,
'LandmarkStore',
'getLandmark',
args: landmarkId,
);
if (resultString['gemApiError'] == -11) {
return null;
}
return Landmark.init(resultString['result']);
}