getMarkerById method
- int id
Find a marker in the collection by its unique id.
Parameters
id: The marker id to search for.
Returns
- The matching Marker, or
nullif no marker with that id exists.
Implementation
Marker? getMarkerById(final int id) {
final OperationResult resultString = objectMethod(
pointerId,
'MarkerCollection',
'getMarkerById',
args: id,
);
if (resultString['result'] == -1) {
return null;
}
return Marker.init(resultString['result']);
}