MarkerOption constructor

MarkerOption(
  1. {@required LatLng latLng,
  2. String title,
  3. String snippet,
  4. Uri iconUri,
  5. Widget widget,
  6. ImageConfiguration imageConfig,
  7. bool draggable,
  8. bool infoWindowEnabled = true,
  9. double rotateAngle,
  10. double anchorU,
  11. double anchorV}
)

Implementation

MarkerOption({
  @required this.latLng,
  this.title,
  this.snippet,
  this.iconUri,
  this.widget,
  this.imageConfig,
  this.draggable,
  this.infoWindowEnabled = true,
  this.rotateAngle,
  this.anchorU,
  this.anchorV,
})  : assert(
        (iconUri != null && imageConfig != null) || iconUri == null,
        'iconUri和imageConfig必须同时设置! 如果想要一个默认的imageConfig, 那么就直接调用[createLocalImageConfiguration]方法来创建!',
      ),
      assert(!(widget != null && iconUri != null), 'widget和iconUri不能同时设置! ');