small method
Widget
small(
- BuildContext context,
- String? text, {
- int? maxLines,
- TextAlign? textAlign,
- Color? color,
- double? height,
- TextDecoration? decoration,
- 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),
);
}