updateObjectPaint method
Updates paint on one object.
Implementation
bool updateObjectPaint(String id, CanvasPaint paint) {
final object = objectById(id);
if (object == null || object.locked) return false;
return update(id, _copyObjectWithPaint(object, paint));
}