Marker constructor
Marker(
- dynamic latlng, {
- num? size,
- num? width,
- num? height,
- double? opacity,
- MarkerAlignment? align,
- MarkerOffset? offset,
- dynamic widget,
- dynamic data,
Implementation
Marker(
dynamic latlng, {
num? size,
num? width,
num? height,
this.opacity,
this.align,
this.offset,
dynamic widget,
this.data,
}) : latlng = LatLng.from(latlng),
size = size?.toDouble(),
width = width?.toDouble() ?? size?.toDouble(),
height = height?.toDouble() ?? size?.toDouble(),
icon = widget is MarkerIcon ? widget : null,
image = widget is MarkerImage ? widget : null,
svg = widget is MarkerSvg ? widget : null,
widget = widget is Widget ? widget : null;