AppText.headlineSmall constructor

AppText.headlineSmall(
  1. String data, {
  2. Key? key,
  3. Color? color,
  4. double? height,
  5. double? fontSize,
  6. FontWeight? fontWeight,
  7. double? letterSpacing,
  8. TextAlign? textAlign,
  9. int? maxLines,
  10. TextOverflow? overflow,
})

Implementation

AppText.headlineSmall(
  super.data, {
  super.key,
  this.color,
  this.height,
  this.fontSize,
  this.fontWeight,
  this.letterSpacing,
  super.textAlign,
  super.maxLines,
  super.overflow,
}) {
  builder = (context) {
    return Text(
      data ?? '',
      key: key,
      textAlign: textAlign,
      maxLines: maxLines,
      overflow: overflow,
      style: Theme.of(context).textTheme.headlineSmall!.copyWith(
            color: color,
            height: height,
            fontSize: fontSize,
            fontWeight: fontWeight,
            letterSpacing: letterSpacing,
          ),
    );
  };
}