AppText.headlineSmall constructor
AppText.headlineSmall(
- String data, {
- Key? key,
- Color? color,
- double? height,
- double? fontSize,
- FontWeight? fontWeight,
- double? letterSpacing,
- TextAlign? textAlign,
- int? maxLines,
- 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,
),
);
};
}