TextX.displaySmall constructor

TextX.displaySmall(
  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.displaySmall(
  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.displaySmall,
      size = 30.sp;