text static method
TextStyle
text({
- Color? color,
- double? size,
- FontWeight weight = FontWeight.normal,
- double? letterSpacing,
- TextDecoration? line,
Implementation
static TextStyle text({
Color? color,
double? size,
FontWeight weight: FontWeight.normal,
double? letterSpacing,
TextDecoration? line,
// TextOverflow? flow,
}) {
return TextStyle(
color: color,
fontSize: size,
fontWeight: weight,
fontFamily: 'PromptRegular',
decoration: line ?? null,
// overflow: flow ?? null,
// height: 1.2,
letterSpacing: letterSpacing);
}