NxText.error constructor

NxText.error(
  1. String text, {
  2. double fontSize = 12,
  3. FontWeight? fontWeight,
  4. Color? color,
})

Implementation

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