ExpandableText.manual constructor

ExpandableText.manual(
  1. String text, {
  2. required bool expand,
  3. required TickerProvider? vsync,
  4. Duration animationDuration = const Duration(milliseconds: 150),
  5. TextStyle? textStyle,
  6. StrutStyle? strutStyle,
  7. TextAlign textAlign = TextAlign.start,
  8. TextDirection textDirection = TextDirection.ltr,
  9. Locale? locale,
  10. double textScaleFactor = 1,
  11. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  12. Alignment alignment = Alignment.topCenter,
  13. Key? key,
})

Manual control Show and hide text completely

Implementation

ExpandableText.manual(this.text,
    {required this.expand,
    required this.vsync,
    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.alignment = Alignment.topCenter,
    Key? key})
    : lines = null,
      arrowColor = null,
      arrowSize = 24,
      arrowWidgetBuilder = null,
      expandMode = _ExpandMode.Manual,
      super(key: key);