Marker constructor
Marker({})
The marker must have a valid imagePath
and latLng
.
The width
and height
must be both provided or both null.
Implementation
Marker({
required this.imagePath,
required this.latLng,
this.title,
this.snippet,
this.width,
this.height,
}) : assert(width != null || height == null,
'Width and height must be both provided or both null'),
assert(height != null || width == null,
'Width and height must be both provided or both null');