TextX.titleMedium constructor

TextX.titleMedium(
  1. String text, {
  2. Key? key,
  3. Color? color,
  4. FontWeight? weight,
  5. double? height,
  6. int? maxLines = 1,
  7. bool? softWrap = false,
  8. TextOverflow? overflow = TextOverflow.ellipsis,
  9. TextAlign? textAlign,
})

Implementation

TextX.titleMedium(
  this.text, {
  super.key,
  this.color,
  this.weight,
  this.height,
  this.maxLines = 1,
  this.softWrap = false,
  this.overflow = TextOverflow.ellipsis,
  this.textAlign,
})  : style = Theme.of(Get.context!).textTheme.titleMedium,
      size = 20.sp;