lineLimit method

Widget lineLimit(
  1. int limit
)

Changes the DefaultTextStyle.maxLines for this widget.

Implementation

Widget lineLimit(int limit) {
  return DefaultTextStyle(
    maxLines: limit,
    style: style!,
    child: this,
  );
}