NxText.error constructor
NxText.error(})
Implementation
factory NxText.error(String text, {
int? maxLines,
TextOverflow? overflow,
TextAlign? textAlign,
double? lineHeight,
Function? onPressed
}) => NxText(
text,
maxLines: maxLines,
overflow: overflow,
textAlign: textAlign,
fontSize: 14,
fontWeight: FontWeight.w300,
onPressed: onPressed,
lineHeight: 1.5,
defaultColor: NxColor.error,
);