MarkerAnnotation constructor
MarkerAnnotation({
- required String id,
- required Offset position,
- MarkerType markerType = MarkerType.info,
- double markerSize = 24.0,
- Color color = Colors.red,
- String? tooltip,
- int zIndex = 0,
- bool isVisible = true,
- bool selected = false,
- bool isInteractive = true,
- Set<
String> dependencies = const {}, - Offset offset = Offset.zero,
- Map<
String, dynamic> metadata = const {},
Implementation
MarkerAnnotation({
required super.id,
required Offset position,
this.markerType = MarkerType.info,
this.markerSize = 24.0,
this.color = Colors.red,
this.tooltip,
int zIndex = 0,
bool isVisible = true,
super.selected = false,
super.isInteractive = true,
Set<String> dependencies = const {},
super.offset = Offset.zero,
super.metadata,
}) : super(
type: 'marker',
initialPosition: position,
initialZIndex: zIndex,
initialIsVisible: isVisible,
initialDependencies: dependencies,
);