maxWidth property

double maxWidth
final

Maximum width before text wraps to multiple lines.

If the text exceeds this width, it will automatically wrap to the next line. Set to double.infinity (default) for no wrapping - text will be single line.

Example:

maxWidth: 150.0  // Text wraps after 150 logical pixels
maxWidth: double.infinity  // No wrapping (default)

Implementation

final double maxWidth;