size property

Size? size
final

Artificial constraints to be applied to the previewed widget.

If not provided, the previewed widget will attempt to set its own constraints.

If a dimension has a value of double.infinity, the previewed widget will attempt to set its own constraints in the relevant dimension.

To set a single dimension and allow the other to set its own constraints, use Size.fromHeight or Size.fromWidth.

Implementation

final Size? size;