From 7f0d10c649ae83804c5f8c05adebfd881f878859 Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Mon, 29 Apr 2024 10:42:11 +0300 Subject: [PATCH] chore: minor change to js casting --- .../lib/src/marker_clustering_js_interop.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker_clustering_js_interop.dart b/packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker_clustering_js_interop.dart index 50e4ac72cec1..e3bf42b4e712 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker_clustering_js_interop.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker_clustering_js_interop.dart @@ -33,7 +33,7 @@ extension type MarkerClustererOptions._(JSObject _) implements JSObject { }) => MarkerClustererOptions._js( map: map as JSAny?, - markers: markers?.cast().toJS ?? [].toJS, + markers: markers?.cast().toJS ?? JSArray(), onClusterClick: onClusterClick != null ? ((JSAny event, MarkerClustererCluster cluster, JSAny map) => onClusterClick(event as gmaps.MapMouseEvent, cluster,