ReadMoreExpandableText constructor
const
ReadMoreExpandableText({
- Key? key,
- required String text,
- int maxLines = 3,
- TextStyle? textStyle,
- TextStyle? buttonStyle,
- String expandText = 'See More',
- String collapseText = 'See Less',
- IconData expandIcon = Icons.keyboard_arrow_down,
- IconData collapseIcon = Icons.keyboard_arrow_up,
- Color? iconColor,
- double iconSize = 17.5,
- EdgeInsets buttonPadding = const EdgeInsets.only(top: 12.0),
Implementation
const ReadMoreExpandableText({
super.key,
required this.text,
this.maxLines = 3,
this.textStyle,
this.buttonStyle,
this.expandText = 'See More',
this.collapseText = 'See Less',
this.expandIcon = Icons.keyboard_arrow_down,
this.collapseIcon = Icons.keyboard_arrow_up,
this.iconColor,
this.iconSize = 17.5,
this.buttonPadding = const EdgeInsets.only(top: 12.0),
});