NxText.primary constructor

NxText.primary(
  1. String text, {
  2. double? fontSize,
  3. FontWeight? fontWeight,
  4. Color? color,
  5. 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,
);