updateText method
Updates one text object's text.
Implementation
bool updateText(String id, String text) {
final object = objectById(id);
if (object is! CanvasTextObject || object.locked) return false;
return update(id, object.copyWith(text: text));
}