position property
Offset
get
position
Gets or sets the position of the StickyNoteAnnotation.
Implementation
Offset get position => boundingBox.topLeft;
set
position
(Offset newValue)
Implementation
set position(Offset newValue) {
if (position.dx != newValue.dx || position.dy != newValue.dy) {
final bool canChange = onPropertyChange?.call(this, 'position') ?? true;
if (canChange) {
final Offset oldValue = position;
setBounds(newValue & boundingBox.size);
onPropertyChanged?.call(this, 'position', oldValue, newValue);
notifyChange();
}
}
}