NxText.primary constructor
NxText.primary(
- String text, {
- double? fontSize,
- FontWeight? fontWeight,
- Color? color,
- Function? onPressed,
Implementation
factory NxText.primary(String text, {
double? fontSize,
FontWeight? fontWeight,
Color? color,
Function? onPressed
}) => NxText(
text,
fontSize: fontSize,
fontWeight: fontWeight,
defaultColor: NxColor.primary,
onPressed: onPressed,
);