StyledText constructor

const StyledText({
  1. Key? key,
  2. required List<Text>? children,
  3. TextStyle? style,
  4. void onEnter(
    1. Text text,
    2. PointerEnterEvent event
    )?,
  5. void onExit(
    1. Text text,
    2. PointerExitEvent event
    )?,
  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({
  super.key,
  required this.children,
  this.style,
  this.onEnter,
  this.onExit,
  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,
}) : text = null,
     styles = null,
     onTap = null;