createData method

TextData createData(
  1. double width,
  2. FlexMeasureMode widthMode
)

Implementation

TextData createData(double width, FlexMeasureMode widthMode) {
  if (span == null || dirty) {
    span = createSpan(useChild: true);
    dirty = false;
  }
  lastLayoutWidth = width;
  return TextData(
    _numberOfLines ?? kMaxLineCount,
    span!,
    _textAlign,
    _generateTextScale(),
    _textOverflow,
  );
}