keyByMarkerId function

Map<String, Marker> keyByMarkerId(
  1. Iterable<Marker> markers
)

Implementation

Map<String, Marker> keyByMarkerId(Iterable<Marker> markers) {
  return Map<String, Marker>.fromEntries(markers.map(
      (Marker marker) => MapEntry<String, Marker>(marker.id, marker.clone())));
}