NxText.subtitle constructor

NxText.subtitle(
  1. String text, {
  2. int? maxLines,
  3. TextAlign? textAlign,
  4. Color? color,
  5. Function? onPressed,
})

Implementation

factory NxText.subtitle(String text,{
  int? maxLines,
  TextAlign? textAlign,
  Color? color,
  Function? onPressed
}) => NxText(
  text,
  maxLines: maxLines,
  textAlign: textAlign,
  color: color,
  fontSize: 18,
  fontWeight: FontWeight.w600,
  onPressed: onPressed,
);