small method

Widget small(
  1. BuildContext context,
  2. String? text, {
  3. int? maxLines,
  4. TextAlign? textAlign,
  5. Color? color,
  6. double? height,
  7. TextDecoration? decoration,
  8. bool? bold = false,
})

Implementation

Widget small(BuildContext context, String? text,
    {int? maxLines,
    TextAlign? textAlign,
    Color? color,
    double? height,
    TextDecoration? decoration,
    bool? bold = false}) {
  return Text(
    text ?? '',
    textAlign: textAlign ?? TextAlign.start,
    maxLines: maxLines,
    overflow: maxLines != null ? TextOverflow.ellipsis : null,
    style: smallTextStyle(context,
        bold: bold, color: color, height: height, decoration: decoration),
  );
}