size property

Size size
final

The size that this CustomPaint should aim for, given the layout constraints, if there is no child.

Defaults to Size.zero.

If there's a child, this is ignored, and the size of the child is used instead.

Implementation

final Size size;