ExpandableText constructor

const ExpandableText({
  1. Key? key,
  2. required String content,
  3. bool canCollapsed = true,
  4. int maxLines = 6,
  5. TextStyle? contentTextStyle,
  6. TextStyle? expandTextStyle,
  7. String expandText = "展开",
  8. String collapsedText = "收起",
})

Implementation

const ExpandableText({
  Key? key,
  required this.content,
  this.canCollapsed = true,
  this.maxLines = 6,
  this.contentTextStyle,
  this.expandTextStyle,
  this.expandText = "展开",
  this.collapsedText = "收起",
}) : super(key: key);