widgetText function

Widget widgetText({
  1. String? text,
  2. TextAlign? textAlign,
  3. int maxLine = 1,
  4. double latterSpacing = 0.5,
  5. bool textAllCaps = false,
  6. dynamic isLongText = false,
  7. TextStyle? style,
})

Implementation

Widget widgetText(
    {final String? text,
    final TextAlign? textAlign,
    final int maxLine = 1,
    final double latterSpacing = 0.5,
    final bool textAllCaps = false,
    final isLongText = false,
    final TextStyle? style}) {
  return Text(textAllCaps ? text!.toUpperCase() : text!,
      textAlign: textAlign ?? TextAlign.start,
      maxLines: isLongText ? null : maxLine,
      overflow: TextOverflow.clip,
      style: style);
}