MarkerOption constructor

MarkerOption({
  1. required LatLng coordinate,
  2. String title = '',
  3. String snippet = '',
  4. Widget? widget,
  5. bool draggable = false,
  6. bool infoWindowEnabled = true,
  7. bool visible = true,
  8. double rotateAngle = 0,
  9. double anchorU = 0.5,
  10. double anchorV = 0,
  11. String? object,
  12. double? opacity,
  13. ImageProvider<Object>? iconProvider,
  14. List<ImageProvider<Object>>? iconsProvider,
  15. int? animationFps,
  16. 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不能同时设置! ');