We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa5b44 commit 5e66578Copy full SHA for 5e66578
packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart
@@ -160,7 +160,11 @@ class Marker implements MapsObject<Marker> {
160
this.onDrag,
161
this.onDragStart,
162
this.onDragEnd,
163
- }) : assert(0.0 <= alpha && alpha <= 1.0);
+ }) : assert(0.0 <= alpha && alpha <= 1.0),
164
+ assert(
165
+ icon is! PinConfig,
166
+ 'Icon must not be a PinConfig. PinConfig is only supported by AdvancedMarker.',
167
+ );
168
169
/// Uniquely identifies a [Marker].
170
final MarkerId markerId;
0 commit comments