AvenirText constructor

const AvenirText(
  1. {Key? key,
  2. required String text,
  3. Color? color,
  4. double fontSize = 2.0,
  5. FontWeight fontWeight = FontWeight.normal,
  6. double? height,
  7. TextAlign textAlign = TextAlign.start,
  8. int? maxLines,
  9. TextDecoration textDecoration = TextDecoration.none,
  10. VoidCallback? onTap,
  11. TextOverflow? textOverflow}
)

Implementation

const AvenirText({
  Key? key,
  required this.text,
  this.color,
  this.fontSize = 2.0,
  this.fontWeight = FontWeight.normal,
  this.height,
  this.textAlign = TextAlign.start,
  this.maxLines,
  this.textDecoration = TextDecoration.none,
  this.onTap,
  this.textOverflow,
}) : super(key: key);