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(
InlineSpan textSpan, {
Key? key,
int? maxLines = 1,
TextStyle? style,
TextAlign textAlign = TextAlign.start,
TextDirection textDirection = TextDirection.ltr,
bool softWrap = true,
}) : super.rich(
textSpan,
key: key,
maxLines: maxLines,
style: style,
textAlign: textAlign,
textDirection: textDirection,
softWrap: softWrap,
overflow:
maxLines != null ? TextOverflow.ellipsis : TextOverflow.visible,
);