text function
Widget
text({
- required String text,
- double? size,
- double? wordSpacing,
- double? letterSpacing,
- Color? color,
- String? fontFamily,
- FontWeightEnum? weight,
- FontWeight? fontWeight,
- bool? softWrap,
- TextOverflow? overflow,
- TextAlign? textAlign,
Implementation
Widget text(
{required String text,
double? size,
double? wordSpacing,
double? letterSpacing,
Color? color,
String? fontFamily,
FontWeightEnum? weight,
FontWeight? fontWeight,
bool? softWrap,
TextOverflow? overflow,
TextAlign? textAlign}) {
return Text(
text,
softWrap: softWrap,
overflow: overflow,
textAlign: textAlign,
style: textStyle(
size: size,
wordSpacing: wordSpacing,
letterSpacing: letterSpacing,
color: color,
fontFamily: fontFamily,
weight: weight,
fontWeight: fontWeight,
softWrap: softWrap,
overflow: overflow,
),
);
}