FoldUpTextWidget constructor

FoldUpTextWidget({
  1. Key? key,
  2. String? text,
  3. List<InlineSpan>? inlineSpanList,
  4. required int maxLines,
  5. bool expanded = false,
  6. TextStyle? textStyle,
  7. TextSpan buildSpan(
    1. bool expand,
    2. GestureRecognizer? gestureRecognizer, [
    3. TextStyle? textStyle
    ]) = _defaultSpanBuilder,
  8. int widgetSpanCount = 0,
})

Implementation

FoldUpTextWidget(
    {Key? key,
    this.text,
    this.inlineSpanList,
    required this.maxLines,
    this.expanded = false,
    this.textStyle,
    this.buildSpan = _defaultSpanBuilder,
    this.widgetSpanCount = 0})
    : assert(maxLines != null),
      assert(buildSpan != null),
      assert(text != null || inlineSpanList != null),
      super(key: key);