ast method

Widget ast(
  1. int ml
)

Implementation

Widget ast(int ml) => this is Text
    ? AutoSizeText(
        (this as Text).data ?? "",
        style: (this as Text).style,
        minFontSize: 9,
        overflow: TextOverflow.ellipsis,
        maxFontSize: (this as Text).style?.fontSize ?? 16,
        maxLines: ml,
        wrapWords: false,
      )
    : this;