WowText.rich constructor

const WowText.rich(
  1. InlineSpan textSpan, {
  2. Key? key,
  3. int? maxLines = 1,
  4. TextStyle? style,
  5. TextAlign? textAlign = TextAlign.start,
  6. TextDirection? textDirection = TextDirection.ltr,
  7. 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,
      );