style static method

TextStyle style({
  1. double? fontSize,
  2. FontWeight? fontWeight,
  3. Color? color,
  4. int? maxLines,
  5. double? lineHeight,
  6. TextAlign? textAlign,
  7. double? heightSpacingText,
  8. double? letterSpacing,
  9. 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);
}