BaseText constructor
BaseText(})
Implementation
BaseText(String? text,
{super.key,
Color? color,
TextStyle? style,
Color? backgroundColor,
int? maxLines,
double fontSize = 14,
double? height,
double? letterSpacing,
TextOverflow? overflow,
FontWeight? fontWeight,
super.textAlign,
String? fontFamily})
: super(text ?? '',
maxLines: maxLines == null ? 1 : (maxLines == 0 ? null : maxLines),
overflow: overflow ??
(maxLines == 0 ? TextOverflow.clip : TextOverflow.ellipsis),
style: TStyle(
fontWeight: fontWeight,
letterSpacing: letterSpacing,
backgroundColor: backgroundColor,
fontSize: fontSize,
color: color,
fontFamily: fontFamily,
height: height)
.merge(style));