StyledText.template constructor
const
StyledText.template(
- String? text, {
- Key? key,
- Map<
String, TextStyle> ? styles, - Map<
String, VoidCallback> ? onTap, - TextStyle? style,
- 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.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;