NxText constructor
const
NxText(
- String text, {
- Key? key,
- Color? color = Colors.black87,
- double? fontSize = 14,
- int? maxLines = 3,
- TextAlign? textAlign = TextAlign.left,
- FontWeight? fontWeight = FontWeight.normal,
- FontStyle? fontStyle = FontStyle.normal,
- Function? onPressed,
- NxColor? defaultColor,
- 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);