StickyAnnotation constructor
StickyAnnotation({})
Implementation
StickyAnnotation({
required super.id,
required Offset position,
required String text,
double width = 200.0,
double height = 100.0,
this.color = Colors.yellow,
int zIndex = 0,
bool isVisible = true,
super.selected = false,
super.isInteractive = true,
super.metadata,
}) : _text = Observable(text),
_width = Observable(width),
_height = Observable(height),
super(
type: 'sticky',
initialPosition: position,
initialZIndex: zIndex,
initialIsVisible: isVisible,
);