rebase static method

TextStyle rebase(
  1. TextStyle? style,
  2. {bool? inherit,
  3. Color? color,
  4. Color? backgroundColor,
  5. double? fontSize,
  6. FontWeight? fontWeight,
  7. FontStyle? fontStyle,
  8. double? letterSpacing,
  9. double? wordSpacing,
  10. TextBaseline? textBaseline,
  11. double? height,
  12. TextLeadingDistribution? leadingDistribution,
  13. Locale? locale,
  14. Paint? foreground,
  15. Paint? background,
  16. List<Shadow>? shadows,
  17. List<FontFeature>? fontFeatures,
  18. TextDecoration? decoration,
  19. Color? decorationColor,
  20. TextDecorationStyle? decorationStyle,
  21. double? decorationThickness,
  22. String? debugLabel,
  23. String? fontFamily,
  24. List<String>? fontFamilyFallback}
)

Method for modifying final properties.

Implementation

static TextStyle rebase(
  TextStyle? style, {
  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,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
  String? debugLabel,
  String? fontFamily,
  List<String>? fontFamilyFallback,
}) {
  return TextStyle(
    inherit: inherit ?? style?.inherit ?? true,
    color: color ?? style?.color,
    backgroundColor: backgroundColor ?? style?.backgroundColor,
    fontSize: fontSize ?? style?.fontSize,
    fontWeight: fontWeight ?? style?.fontWeight,
    fontStyle: fontStyle ?? style?.fontStyle,
    letterSpacing: letterSpacing ?? style?.letterSpacing,
    wordSpacing: wordSpacing ?? style?.wordSpacing,
    textBaseline: textBaseline ?? style?.textBaseline,
    height: height ?? style?.height,
    leadingDistribution: leadingDistribution ?? style?.leadingDistribution,
    locale: locale ?? style?.locale,
    foreground: foreground ?? style?.foreground,
    background: background ?? style?.background,
    shadows: shadows ?? style?.shadows,
    fontFeatures: fontFeatures ?? style?.fontFeatures,
    decoration: decoration ?? style?.decoration,
    decorationColor: decorationColor ?? style?.decorationColor,
    decorationStyle: decorationStyle ?? style?.decorationStyle,
    decorationThickness: decorationThickness ?? style?.decorationThickness,
    debugLabel: debugLabel ?? style?.debugLabel,
    fontFamily: fontFamily ?? style?.fontFamily,
    fontFamilyFallback: fontFamilyFallback ?? style?.fontFamilyFallback,
  );
}