getTextStyle static method

TextStyle getTextStyle({
  1. double fontSize = 24,
  2. FontWeight fontWeight = FontWeight.normal,
  3. String fontFamily = Constants.englishFontFamily,
  4. required Color color,
  5. dynamic textDecoration = TextDecoration.none,
})

Implementation

static TextStyle getTextStyle({
  double fontSize = 24,
  FontWeight fontWeight = FontWeight.normal,
  String fontFamily = Constants.englishFontFamily,
  required Color color,
  textDecoration = TextDecoration.none,
}) {
  return TextStyle(
      fontFamily: fontFamily,
      fontWeight: fontWeight,
      fontSize: fontSize,
      color: color,
      decoration: textDecoration);
}