NxText.title constructor

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

Implementation

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