MarkerOption constructor
MarkerOption({
- required LatLng coordinate,
- String title = '',
- String snippet = '',
- Widget? widget,
- bool draggable = false,
- bool infoWindowEnabled = true,
- bool visible = true,
- double rotateAngle = 0,
- double anchorU = 0.5,
- double anchorV = 0,
- String? object,
- double? opacity,
- ImageProvider<
Object> ? iconProvider, - List<
ImageProvider< ? iconsProvider,Object> > - int? animationFps,
- Widget? infoWindow,
Implementation
MarkerOption({
required this.coordinate,
this.title = '',
this.snippet = '',
this.widget,
this.draggable = false,
this.infoWindowEnabled = true,
this.visible = true,
this.rotateAngle = 0,
this.anchorU = 0.5,
this.anchorV = 0,
this.object,
this.opacity,
this.iconProvider,
this.iconsProvider,
this.animationFps,
this.infoWindow,
}) : assert(!(widget != null && iconProvider != null),
'widget和iconProvider不能同时设置! ');