NxText.error constructor
NxText.error(
- String text, {
- double fontSize = 12,
- FontWeight? fontWeight,
- Color? color,
Implementation
factory NxText.error(String text, {
double fontSize = 12,
FontWeight? fontWeight,
Color? color,
}) => NxText(
text,
fontSize: fontSize,
fontWeight: fontWeight,
color: Colors.red
);