when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. bool inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  2. {required TResult displayLarge(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  3. required TResult displayMedium(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  4. required TResult displaySmall(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  5. required TResult headlineLarge(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  6. required TResult headlineMedium(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  7. required TResult headlineSmall(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  8. required TResult bodyLarge(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  9. required TResult bodyMedium(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  10. required TResult bodySmall(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  11. required TResult titleLarge(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  12. required TResult titleMedium(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  13. required TResult titleSmall(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  14. required TResult labelLarge(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  15. required TResult labelMedium(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    ),
  16. required TResult labelSmall(
    1. bool? inherit,
    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. TextLeadingDistribution? leadingDistribution,
    12. Locale? locale,
    13. Paint? foreground,
    14. Paint? background,
    15. List<Shadow>? shadows,
    16. List<FontFeature>? fontFeatures,
    17. List<FontVariation>? fontVariations,
    18. TextDecoration? decoration,
    19. Color? decorationColor,
    20. TextDecorationStyle? decorationStyle,
    21. double? decorationThickness,
    22. String? debugLabel,
    23. String? fontFamily,
    24. List<String>? fontFamilyFallback,
    25. String? package,
    26. TextOverflow? overflow
    )}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>(
  TResult Function(
          bool inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      $default, {
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      displayLarge,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      displayMedium,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      displaySmall,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      headlineLarge,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      headlineMedium,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      headlineSmall,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      bodyLarge,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      bodyMedium,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      bodySmall,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      titleLarge,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      titleMedium,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      titleSmall,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      labelLarge,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      labelMedium,
  required TResult Function(
          bool? inherit,
          Color? color,
          Color? backgroundColor,
          double? fontSize,
          FontWeight? fontWeight,
          FontStyle? fontStyle,
          double? letterSpacing,
          double? wordSpacing,
          TextBaseline? textBaseline,
          double? height,
          TextLeadingDistribution? leadingDistribution,
          Locale? locale,
          Paint? foreground,
          Paint? background,
          List<Shadow>? shadows,
          List<FontFeature>? fontFeatures,
          List<FontVariation>? fontVariations,
          TextDecoration? decoration,
          Color? decorationColor,
          TextDecorationStyle? decorationStyle,
          double? decorationThickness,
          String? debugLabel,
          String? fontFamily,
          List<String>? fontFamilyFallback,
          String? package,
          TextOverflow? overflow)
      labelSmall,
}) =>
    throw _privateConstructorUsedError;