maxWidth property
The max width of the widget.
The widget is automatically sized to fit the available width if this is omitted, in which case an error occurs if the widget is unconstrained.
The actual width of the widget may become smaller depending on the maxHeight and the aspectRatio.
Implementation
final double? maxWidth;