TextWidget constructor
const
TextWidget(
- String text, {
- Key? key,
- TextAlign? textAlign,
- int? maxLines,
- TextOverflow? overflow,
- TextType textType = TextType.body,
- TextScaler? textScaler,
- Color? color,
- TextOptions? textOptions,
Implementation
const TextWidget(
this.text, {
super.key,
this.textAlign,
this.maxLines,
this.overflow,
this.textType = TextType.body,
this.textScaler,
this.color,
this.textOptions,
}) : assert(
textType != TextType.custom || textOptions != null,
'TextType.custom requires textOptions to be provided.',
);