RenderText constructor

RenderText({
  1. required String text,
  2. TextStyle? style,
  3. bool softWrap = true,
  4. int? maxLines,
  5. TextOverflow overflow = TextOverflow.clip,
})

Creates a RenderText with the given text content and display configuration.

Implementation

RenderText({
  required String text,
  TextStyle? style,
  bool softWrap = true,
  int? maxLines,
  TextOverflow overflow = TextOverflow.clip,
})  : _text = text,
      _style = style,
      _softWrap = softWrap,
      _maxLines = maxLines,
      _overflow = overflow;