get method
Get rectangle bounds of the object with the given objectId.
Implementation
ui.Rect get(int objectId) {
final objects = _objects;
if (objectId < 0 || objectId >= objects.length)
throw ArgumentError('Object with id $objectId not found.');
final offset = objectId * _objectSize;
return ui.Rect.fromLTWH(
objects[offset + 0],
objects[offset + 1],
objects[offset + 2],
objects[offset + 3],
);
}