update method
Updates multiple properties at once
Implementation
void update({String? text, double? anchor, double? offset}) {
runInAction(() {
if (text != null) _text.value = text;
if (anchor != null) {
assert(
anchor >= 0.0 && anchor <= 1.0,
'anchor must be between 0.0 and 1.0',
);
_anchor.value = anchor;
}
if (offset != null) _offset.value = offset;
});
}