headingMedium method

Text headingMedium({
  1. Color? color,
  2. double? fontSize,
  3. FontWeight? fontWeight,
  4. FontStyle? fontStyle,
  5. double? letterSpacing,
  6. double? wordSpacing,
  7. TextBaseline? textBaseline,
  8. double? height,
  9. Locale? locale,
  10. Paint? foreground,
  11. Paint? background,
  12. List<Shadow>? shadows,
  13. List<FontFeature>? fontFeatures,
  14. TextDecoration? decoration,
  15. Color? decorationColor,
  16. TextDecorationStyle? decorationStyle,
  17. double? decorationThickness,
  18. String? fontFamily,
  19. List<String>? fontFamilyFallback,
  20. String? package,
  21. TextOverflow? overflow,
  22. TextDecoration? overline,
  23. Color? overlineColor,
  24. TextDecorationStyle? overlineStyle,
  25. double? overlineThickness,
  26. TextDecoration? underline,
  27. Color? underlineColor,
  28. TextDecorationStyle? underlineStyle,
  29. double? underlineThickness,
  30. TextHeightBehavior? textHeightBehavior,
})

Set the Style to use headlineMedium.

Implementation

Text headingMedium({
  Color? color,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  double? height,
  Locale? locale,
  Paint? foreground,
  Paint? background,
  List<Shadow>? shadows,
  List<FontFeature>? fontFeatures,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
  String? fontFamily,
  List<String>? fontFamilyFallback,
  String? package,
  TextOverflow? overflow,
  TextDecoration? overline,
  Color? overlineColor,
  TextDecorationStyle? overlineStyle,
  double? overlineThickness,
  TextDecoration? underline,
  Color? underlineColor,
  TextDecorationStyle? underlineStyle,
  double? underlineThickness,
  TextHeightBehavior? textHeightBehavior,
}) {
  TextStyle textStyle = TextStyle(
    color: color,
    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,
    fontFamily: fontFamily,
    fontFamilyFallback: fontFamilyFallback,
    package: package,
    overflow: overflow,
  );
  if (style == null) {
    return copyWith(
        style: Theme.of(_context).textTheme.headlineMedium?.merge(textStyle));
  }
  return setStyle(
      Theme.of(_context).textTheme.headlineMedium?.merge(textStyle));
}