updateObjectPaint method

bool updateObjectPaint(
  1. String id,
  2. CanvasPaint paint
)

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));
}