StyledText constructor
const
StyledText({
- Key? key,
- required List<
Text> ? children, - TextStyle? style,
- void onEnter(
- Text text,
- PointerEnterEvent event
- void onExit(
- Text text,
- PointerExitEvent event
- bool? spellOut,
- bool softWrap = true,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- int? maxLines,
- TextOverflow overflow = TextOverflow.clip,
- Locale? locale,
- StrutStyle? strutStyle,
- TextScaler? textScaler,
- 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;