size property

Size? get size

The size of the shape

Implementation

Size? get size {
  return getCached("size", () {
    final box = _getBoundingBox();
    if (box == null) return null;

    return Size(box.width?.toDouble() ?? 0.0, box.height?.toDouble() ?? 0.0);
  });
}