NxText constructor

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

Implementation

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