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(
  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,
      );