jetBrainsMono static method

TextStyle jetBrainsMono({
  1. TextStyle? textStyle,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. Paint? foreground,
  13. Paint? background,
  14. List<Shadow>? shadows,
  15. List<FontFeature>? fontFeatures,
  16. TextDecoration? decoration,
  17. Color? decorationColor,
  18. TextDecorationStyle? decorationStyle,
  19. double? decorationThickness,
})

Applies the JetBrains Mono font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle jetBrainsMono({
  TextStyle? textStyle,
  Color? color,
  Color? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  double? height,
  Locale? locale,
  Paint? foreground,
  Paint? background,
  List<ui.Shadow>? shadows,
  List<ui.FontFeature>? fontFeatures,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
}) {
  final fonts = <GoogleFontsVariant, GoogleFontsFile>{
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c7c1f1398c921777d4230a8f6eac3170e9b486a713626574404ebfa45013bb5a',
      112252,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '984a71eac1b150c1370105ba6db667b52ba1de7f5dabbef2b44b4296ec2500ca',
      112340,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '82e67a7cffcd9bb7e4dc8ba981e73d53446d58d1d1bf852add5497e8669954a4',
      112276,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '361fac94a0812ed53198d01f2a1278aa47c6de82ba0e6b4ef87844ba97a72c2f',
      112148,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '94ffba68177781765b2e8be0604136249b8de53f12b27c54a42186ba81bbcdf4',
      112180,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e368916188fd807817411c42bdda25f5dadf86d8a249dab8ce2cd223b2fb63bd',
      112136,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '02143dbef16d04c8e4954eeacf285766b9e4d7596dc1b7f81174be0f14e22cda',
      112068,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '52302ea9dfe2dd75d4ed6a53666b44afdd9b69c31c779c597bcaa3785a143130',
      112064,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '64e26c50414ece752e3f63b22231a8ec681f234d68707927a4720d6a36ddd4ae',
      115164,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2b5a7eab2e07f7ec2484c7808e9468ec36ad00e6e6596b2057bce07b9ffea8ec',
      115260,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5b1a493b9d1d02191ca6fe1720d3274d699d013946c3cb6504c4815d271ff40c',
      115136,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'd3e784acd559721a5d51a29e922c8bb416a27deedb1740ed98670c9317e5243c',
      114936,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4f558efc51fe477d61aa8b953ec10be925706cd40b9e9185952b7fe2bc2ee2b4',
      115060,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e3f1ff45b1912348b20d9549fc55bbac5a58245695d98b4d7090376861bef0b1',
      115004,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '7f731c016d2e7a13b087610d7aafe22a5ac3bfb88a1b67a9d619229f8b8815fe',
      114932,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '27660df17ffdfc932cc70dd89a968ae1e88c0a12422a27bade4ad6db62fd3bcf',
      114984,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'JetBrainsMono',
    color: color,
    backgroundColor: backgroundColor,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    letterSpacing: letterSpacing,
    wordSpacing: wordSpacing,
    textBaseline: textBaseline,
    height: height,
    locale: locale,
    foreground: foreground,
    background: background,
    shadows: shadows,
    fontFeatures: fontFeatures,
    decoration: decoration,
    decorationColor: decorationColor,
    decorationStyle: decorationStyle,
    decorationThickness: decorationThickness,
    fonts: fonts,
  );
}