ExpandableText constructor
ExpandableText({
- required String text,
- required TextStyle style,
- int maxLines = 3,
- TextAlign? textAlign,
- bool selectable = false,
- TextScaler? textScaler,
- TextOverflow? textOverflow,
- String expandLabel = '...show more',
- String collapseLabel = ' show less',
- TextStyle? expandTextStyle,
Implementation
ExpandableText({
required this.text,
required this.style,
this.maxLines = 3,
this.textAlign,
this.selectable = false,
this.textScaler,
this.textOverflow,
this.expandLabel = '...show more',
this.collapseLabel = ' show less',
this.expandTextStyle,
});