constrainedAxis property Null safety

Axis? constrainedAxis

The axis to retain constraints on, if any.

If not set, or set to null (the default), neither axis will retain its constraints. If set to Axis.vertical, then vertical constraints will be retained, and if set to Axis.horizontal, then horizontal constraints will be retained.


final Axis? constrainedAxis;