SingleLineText function

Text? SingleLineText(
  1. String? text, {
  2. TextAlign? alignment,
  3. TextStyle? style,
})

Implementation

Text? SingleLineText(String? text, {TextAlign? alignment, TextStyle? style}) => text == null
    ? null
    : Text(
        text,
        textAlign: alignment,
        style: style,
        maxLines: 1,
        softWrap: false,
        overflow: TextOverflow.fade,
      );