Marker? getMarker(String markerName) { for (var i = 0; i < markers.length; i++) { var marker = markers[i]; if (marker.matchesName(markerName)) { return marker; } } return null; }