getMarkerById method

Marker? getMarkerById(
  1. 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 null if 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']);
}