StyledText.template constructor

const StyledText.template(
  1. String? text, {
  2. Key? key,
  3. Map<String, TextStyle>? styles,
  4. Map<String, VoidCallback>? onTap,
  5. TextStyle? style,
  6. bool? spellOut,
  7. bool softWrap = true,
  8. TextAlign textAlign = TextAlign.start,
  9. TextDirection? textDirection,
  10. int? maxLines,
  11. TextOverflow overflow = TextOverflow.clip,
  12. Locale? locale,
  13. StrutStyle? strutStyle,
  14. TextScaler? textScaler,
  15. Color? selectionColor,
})

Implementation

const StyledText.template(
  this.text, {
  super.key,
  this.styles,
  this.onTap,
  this.style,
  this.spellOut,
  this.softWrap = true,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.maxLines,
  this.overflow = TextOverflow.clip,
  this.locale,
  this.strutStyle,
  this.textScaler,
  this.selectionColor,
}) : children = null,
     onEnter = null,
     onExit = null;