style static method
TextStyle
style({
- double? fontSize,
- FontWeight? fontWeight,
- Color? color,
- int? maxLines,
- double? lineHeight,
- TextAlign? textAlign,
- double? heightSpacingText,
- double? letterSpacing,
- TextOverflow? overflow,
Implementation
static TextStyle style({
final double? fontSize,
final FontWeight? fontWeight,
final Color? color,
final int? maxLines,
final double? lineHeight,
final TextAlign? textAlign,
final double? heightSpacingText,
final double? letterSpacing,
final TextOverflow? overflow,
}) {
return TextStyle(
height: heightSpacingText,
letterSpacing: letterSpacing,
overflow: overflow ?? TextOverflow.ellipsis,
color: color ?? primaryColor,
fontWeight: fontWeight ?? FontWeight.w400,
fontFamily: 'GothaPro',
fontSize: fontSize ?? 14);
}