ExpandableText.showHide constructor

ExpandableText.showHide(
  1. String text, {
  2. Color? arrowColor,
  3. double arrowSize = 24,
  4. ArrowBuilder? arrowWidgetBuilder,
  5. Duration animationDuration = const Duration(milliseconds: 150),
  6. TextStyle? textStyle,
  7. StrutStyle? strutStyle,
  8. TextAlign textAlign = TextAlign.start,
  9. TextDirection textDirection = TextDirection.ltr,
  10. Locale? locale,
  11. double textScaleFactor = 1,
  12. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  13. bool expand = false,
  14. Alignment alignment = Alignment.topCenter,
  15. Key? key,
})

Auto control Show and hide text completely. With a arrow at the bottom.

Implementation

ExpandableText.showHide(this.text,
    {this.arrowColor,
    this.arrowSize = 24,
    this.arrowWidgetBuilder,
    this.animationDuration = const Duration(milliseconds: 150),
    this.textStyle,
    this.strutStyle,
    this.textAlign = TextAlign.start,
    this.textDirection = TextDirection.ltr,
    this.locale,
    this.textScaleFactor = 1,
    this.textWidthBasis = TextWidthBasis.parent,
    this.expand = false,
    this.alignment = Alignment.topCenter,
    Key? key})
    : lines = null,
      vsync = null,
      expandMode = _ExpandMode.ShowHide,
      super(key: key);