title static method
AppTypography
title(
- String text,
- TitleType type, {
- Variant? variant,
- TextStyle? style,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- double? letterSpacing,
- double? lineHeight,
- TextAlign? textAlign,
- int? maxLines,
})
Implementation
static AppTypography title(
String text,
TitleType type, {
Variant? variant,
TextStyle? style,
Color? color,
double? fontSize,
FontWeight? fontWeight,
double? letterSpacing,
double? lineHeight,
TextAlign? textAlign,
int? maxLines,
}) {
return AppTypography(
text: text,
titleType: type,
variant: variant ?? Variant.medium,
style: style,
color: color,
fontSize: fontSize,
fontWeight: fontWeight,
letterSpacing: letterSpacing,
lineHeight: lineHeight,
textAlign: textAlign,
maxLines: maxLines,
);
}