ExpandableText constructor

const ExpandableText({
  1. Key? key,
  2. required String text,
  3. required int wordLimit,
  4. required TextStyle textStyle,
})

Constructs an ExpandableText widget.

The text parameter is required and represents the full text to be displayed. The wordLimit parameter is required and sets the word limit for the initial display before expanding. The textStyle parameter is required and represents the text style for the displayed text.

Implementation

const ExpandableText({
  Key? key,
  required this.text,
  required this.wordLimit,
  required this.textStyle,
}) : super(key: key);