StyledText constructor

StyledText(
  1. {Key key,
  2. @required String text,
  3. @Deprecated('will be removed in 1.0.2, use newLineAsBreaks instead') bool isNewLineAsBreaks: false,
  4. bool newLineAsBreaks: false,
  5. TextStyle style,
  6. @required Map<String, TextStyle> styles,
  7. TextAlign textAlign: TextAlign.start,
  8. TextDirection textDirection,
  9. bool softWrap: true,
  10. TextOverflow overflow: TextOverflow.clip,
  11. double textScaleFactor,
  12. int maxLines,
  13. Locale locale,
  14. StrutStyle strutStyle}
)

Create a text widget with formatting via tags.

Implementation

StyledText({
  Key key,
  @required this.text,
  @Deprecated('will be removed in 1.0.2, use newLineAsBreaks instead') this.isNewLineAsBreaks = false,
  this.newLineAsBreaks = false,
  this.style,
  @required this.styles,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor,
  this.maxLines,
  this.locale,
  this.strutStyle,
}) : super(key: key);