textStyle method

TextStyle textStyle({
  1. double fontSize = 14,
  2. FontWeight fontWeight = FontWeight.normal,
  3. bool isMonospace = false,
})

Get text style for the theme.

Implementation

TextStyle textStyle({
  double fontSize = 14,
  FontWeight fontWeight = FontWeight.normal,
  bool isMonospace = false,
}) {
  return TextStyle(
    color: textPrimary,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontFamily: isMonospace ? monoFontFamily : fontFamily,
  );
}