constraints property

BoxConstraints? constraints
final

The constraints that the widget is laid out with when no size was given. When this is null too, the widget is laid out with loose constraints bounded by the size of the game canvas in local units.

Ignored when a size was given, since the widget then always gets tight constraints of that size.

Implementation

final BoxConstraints? constraints;