createStickyAnnotation method
Implementation
StickyAnnotation createStickyAnnotation({
required String id,
required Offset position,
required String text,
double width = 200.0,
double height = 100.0,
Color color = Colors.yellow,
Offset offset = Offset.zero,
}) {
// Create annotation with actual position (same as nodes)
final annotation = StickyAnnotation(
id: id,
position: position,
text: text,
width: width,
height: height,
color: color,
offset: offset,
);
return annotation;
}