size property

Size get size

Returns the component's size.

Implementation

Size get size {
  final boundingBox = _boundingBox;
  if (boundingBox != null) {
    return Size(boundingBox.width ?? 0, boundingBox.height ?? 0);
  }
  return Size.zero;
}