createTextStyle method

TextStyle createTextStyle(
  1. Color color,
  2. double fontSize,
  3. {String fontFamily,
  4. FontWeight fontWeight = FontWeight.w400}
)

Implementation

static TextStyle createTextStyle(Color color, double fontSize,
    {String fontFamily, FontWeight fontWeight = FontWeight.w400}) {
  if (fontWeight == null) {
    fontWeight = FontWeight.w400;
  }
  return TextStyle(
      color: color,
      fontSize: fontSize,
      fontFamily: fontFamily,
      fontWeight: fontWeight);
}