TextX.bodyMedium constructor

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

Implementation

TextX.bodyMedium(
  this.text, {
  super.key,
  this.color,
  this.weight,
  this.height,
  this.maxLines,
  this.softWrap,
  this.overflow,
  this.textAlign,
})  : style = Theme.of(Get.context!).textTheme.bodyMedium,
      size = 14.sp;