StickyAnnotation constructor

StickyAnnotation({
  1. required String id,
  2. required Offset position,
  3. required String text,
  4. double width = 200.0,
  5. double height = 100.0,
  6. Color color = Colors.yellow,
  7. int zIndex = 0,
  8. bool isVisible = true,
  9. bool selected = false,
  10. bool isInteractive = true,
  11. Set<String> dependencies = const {},
  12. Offset offset = Offset.zero,
  13. 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,
     );