NxText.primary constructor

NxText.primary(
  1. String text, {
  2. int? maxLines,
  3. TextOverflow? overflow,
  4. TextAlign? textAlign,
  5. double? lineHeight,
  6. Function? onPressed,
})

Implementation

factory NxText.primary(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.primary,
);