WowText.rich constructor
const
WowText.rich(
- InlineSpan textSpan, {
- Key? key,
- int? maxLines = 1,
- TextStyle? style,
- TextAlign? textAlign = TextAlign.start,
- TextDirection? textDirection = TextDirection.ltr,
- bool? softWrap = true,
Text hỗn hợp
Mặc định 1 dòng, canh lề trái, từ trái sang phải
Implementation
const WowText.rich(
super.textSpan, {
super.key,
super.maxLines = 1,
super.style,
super.textAlign = TextAlign.start,
super.textDirection = TextDirection.ltr,
super.softWrap = true,
}) : super.rich(
overflow:
maxLines != null ? TextOverflow.ellipsis : TextOverflow.visible,
);