NxText constructor

const NxText(
  1. String text, {
  2. Key? key,
  3. Color? color = Colors.black87,
  4. double? fontSize = 14,
  5. double? lineHeight = 1,
  6. int? maxLines,
  7. TextAlign? textAlign = TextAlign.left,
  8. FontWeight? fontWeight = FontWeight.normal,
  9. Function? onPressed,
  10. NxColor? defaultColor,
  11. TextDecoration? decoration = TextDecoration.none,
  12. TextOverflow? overflow,
  13. FontStyle? fontStyle,
})

Implementation

const NxText(this.text, {
  Key? key,
  this.color = Colors.black87,
  this.fontSize = 14,
  this.lineHeight = 1,
  this.maxLines,
  this.textAlign = TextAlign.left,
  this.fontWeight = FontWeight.normal,
  this.onPressed,
  this.defaultColor,
  this.decoration = TextDecoration.none,
  this.overflow,
  this.fontStyle,
}) : super(key: key);