MarkerOptions constructor
const
MarkerOptions({
- required GeoPointWithElevation position,
- required Image? icon,
- MapDirection? iconMapDirection = null,
- Anchor anchor = const Anchor(x: 0.5, y: 0.5),
- String? text = null,
- TextStyle? textStyle = null,
- Opacity iconOpacity = const Opacity(1),
- bool visible = true,
- bool draggable = false,
- LogicalPixel iconWidth = const LogicalPixel(0),
- Object? userData = const {},
- ZIndex zIndex = const ZIndex(0),
- bool animatedAppearance = true,
- LevelId? levelId = null,
- AnimationMode iconAnimationMode = AnimationMode.normal,
Implementation
const MarkerOptions({
required this.position,
required this.icon,
this.iconMapDirection = null,
this.anchor = const Anchor(x: 0.5, y: 0.5),
this.text = null,
this.textStyle = null,
this.iconOpacity = const Opacity(1),
this.visible = true,
this.draggable = false,
this.iconWidth = const LogicalPixel(0),
this.userData = const {},
this.zIndex = const ZIndex(0),
this.animatedAppearance = true,
this.levelId = null,
this.iconAnimationMode = AnimationMode.normal
});