indexOf method
- Marker marker
Get the index of the given marker.
Parameters
- IN marker The marker.
Returns
- The index of the given marker if the marker is in the collection
- -1 if the marker is not in the collection
Throws
- An exception if it fails.
Implementation
int indexOf(final Marker marker) {
final OperationResult resultString = objectMethod(
_pointerId,
'MarkerCollection',
'indexOf',
args: marker.pointerId,
);
return resultString['result'];
}