WrappableText.fromRichText constructor

WrappableText.fromRichText(
  1. RichText text
)

Implementation

WrappableText.fromRichText(RichText text)
    :
      // ignore: unnecessary_null_comparison
      assert(text != null),
      key = text.key,
      text = _textSpanFrom(text.text, null, null),
      clear = FCClear.none,
      textAlign = text.textAlign,
      textDirection = text.textDirection,
      overflow = text.overflow,
      textScaleFactor = text.textScaleFactor,
      maxLines = text.maxLines,
      locale = text.locale,
      strutStyle = text.strutStyle,
      textHeightBehavior = text.textHeightBehavior,
      indent = 0.0,
      margin = EdgeInsets.zero,
      padding = EdgeInsets.zero;