Marker<T>? getMarkerByKey(T key) { return _markers.firstWhereOrNull((marker) => marker.key == key); }