ReadMoreExpandableText constructor

const ReadMoreExpandableText({
  1. Key? key,
  2. required String text,
  3. int maxLines = 3,
  4. TextStyle? textStyle,
  5. TextStyle? buttonStyle,
  6. String expandText = 'See More',
  7. String collapseText = 'See Less',
  8. IconData expandIcon = Icons.keyboard_arrow_down,
  9. IconData collapseIcon = Icons.keyboard_arrow_up,
  10. Color? iconColor,
  11. double iconSize = 17.5,
  12. 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),
});