NxText.title constructor

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

Implementation

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