maxLines property

int? maxLines
final

Maximum number of lines for button text.

Defaults to 1 to prevent text wrapping. Set to null for unlimited lines. When limited, text will be truncated with ellipsis if too long.

Implementation

final int? maxLines;