WrappableText.fromText constructor

WrappableText.fromText(
  1. Text text
)

Implementation

WrappableText.fromText(Text text)
    :
      // ignore: unnecessary_null_comparison
      assert(text != null),
      key = text.key,
      text = _textSpanFrom(text.textSpan, text.data, text.style),
      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;