StickyAnnotation constructor
StickyAnnotation({
- required String id,
- required Offset position,
- required String text,
- double width = 200.0,
- double height = 100.0,
- Color color = Colors.yellow,
- 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
StickyAnnotation({
required super.id,
required Offset position,
required this.text,
this.width = 200.0,
this.height = 100.0,
this.color = Colors.yellow,
int zIndex = 0,
bool isVisible = true,
super.selected = false,
super.isInteractive = true,
Set<String> dependencies = const {},
super.offset = Offset.zero,
super.metadata,
}) : super(
type: 'sticky',
initialPosition: position,
initialZIndex: zIndex,
initialIsVisible: isVisible,
initialDependencies: dependencies,
);