copyWith method

  1. @override
ThemeExtension<TdThemeData> copyWith({
  1. Color? brandColor1,
  2. Color? brandColor2,
  3. Color? brandColor3,
  4. Color? brandColor4,
  5. Color? brandColor5,
  6. Color? brandColor6,
  7. Color? brandColor7,
  8. Color? brandColor8,
  9. Color? brandColor9,
  10. Color? brandColor10,
  11. Color? warningColor1,
  12. Color? warningColor2,
  13. Color? warningColor3,
  14. Color? warningColor4,
  15. Color? warningColor5,
  16. Color? warningColor6,
  17. Color? warningColor7,
  18. Color? warningColor8,
  19. Color? warningColor9,
  20. Color? warningColor10,
  21. Color? errorColor1,
  22. Color? errorColor2,
  23. Color? errorColor3,
  24. Color? errorColor4,
  25. Color? errorColor5,
  26. Color? errorColor6,
  27. Color? errorColor7,
  28. Color? errorColor8,
  29. Color? errorColor9,
  30. Color? errorColor10,
  31. Color? successColor1,
  32. Color? successColor2,
  33. Color? successColor3,
  34. Color? successColor4,
  35. Color? successColor5,
  36. Color? successColor6,
  37. Color? successColor7,
  38. Color? successColor8,
  39. Color? successColor9,
  40. Color? successColor10,
  41. Color? grayColor1,
  42. Color? grayColor2,
  43. Color? grayColor3,
  44. Color? grayColor4,
  45. Color? grayColor5,
  46. Color? grayColor6,
  47. Color? grayColor7,
  48. Color? grayColor8,
  49. Color? grayColor9,
  50. Color? grayColor10,
  51. Color? grayColor11,
  52. Color? grayColor12,
  53. Color? grayColor13,
  54. Color? grayColor14,
  55. Color? fontGray1,
  56. Color? fontGray2,
  57. Color? fontGray3,
  58. Color? fontGray4,
  59. Color? fontWhite1,
  60. Color? fontWhite2,
  61. Color? fontWhite3,
  62. Color? fontWhite4,
  63. List<BoxShadow>? shadow1,
  64. List<BoxShadow>? shadow2,
  65. List<BoxShadow>? shadow3,
  66. List<BoxShadow>? shadow4,
  67. Color? maskActive,
  68. Color? maskDisabled,
  69. double? spacer,
  70. double? spacer1,
  71. double? spacer2,
  72. double? spacer3,
  73. double? spacer4,
  74. double? spacer5,
  75. double? spacer6,
  76. TextStyle? font,
  77. TextStyle? fontXs,
  78. TextStyle? fontS,
  79. TextStyle? fontBase,
  80. TextStyle? fontM,
  81. TextStyle? fontL,
  82. TextStyle? fontXl,
  83. BorderRadius? radiusSmall,
  84. BorderRadius? radiusDefault,
  85. BorderRadius? radiusLarge,
  86. BorderRadius? radiusExtraL,
  87. BorderRadius? radiusRound,
  88. BorderRadius? radiusCircle,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TdThemeData> copyWith({
  Color? brandColor1,
  Color? brandColor2,
  Color? brandColor3,
  Color? brandColor4,
  Color? brandColor5,
  Color? brandColor6,
  Color? brandColor7,
  Color? brandColor8,
  Color? brandColor9,
  Color? brandColor10,
  Color? warningColor1,
  Color? warningColor2,
  Color? warningColor3,
  Color? warningColor4,
  Color? warningColor5,
  Color? warningColor6,
  Color? warningColor7,
  Color? warningColor8,
  Color? warningColor9,
  Color? warningColor10,
  Color? errorColor1,
  Color? errorColor2,
  Color? errorColor3,
  Color? errorColor4,
  Color? errorColor5,
  Color? errorColor6,
  Color? errorColor7,
  Color? errorColor8,
  Color? errorColor9,
  Color? errorColor10,
  Color? successColor1,
  Color? successColor2,
  Color? successColor3,
  Color? successColor4,
  Color? successColor5,
  Color? successColor6,
  Color? successColor7,
  Color? successColor8,
  Color? successColor9,
  Color? successColor10,
  Color? grayColor1,
  Color? grayColor2,
  Color? grayColor3,
  Color? grayColor4,
  Color? grayColor5,
  Color? grayColor6,
  Color? grayColor7,
  Color? grayColor8,
  Color? grayColor9,
  Color? grayColor10,
  Color? grayColor11,
  Color? grayColor12,
  Color? grayColor13,
  Color? grayColor14,
  Color? fontGray1,
  Color? fontGray2,
  Color? fontGray3,
  Color? fontGray4,
  Color? fontWhite1,
  Color? fontWhite2,
  Color? fontWhite3,
  Color? fontWhite4,
  List<BoxShadow>? shadow1,
  List<BoxShadow>? shadow2,
  List<BoxShadow>? shadow3,
  List<BoxShadow>? shadow4,
  Color? maskActive,
  Color? maskDisabled,
  double? spacer,
  double? spacer1,
  double? spacer2,
  double? spacer3,
  double? spacer4,
  double? spacer5,
  double? spacer6,
  TextStyle? font,
  TextStyle? fontXs,
  TextStyle? fontS,
  TextStyle? fontBase,
  TextStyle? fontM,
  TextStyle? fontL,
  TextStyle? fontXl,
  BorderRadius? radiusSmall,
  BorderRadius? radiusDefault,
  BorderRadius? radiusLarge,
  BorderRadius? radiusExtraL,
  BorderRadius? radiusRound,
  BorderRadius? radiusCircle,
}) {
  return TdThemeData(
    brandColor1: brandColor1 ?? this.brandColor1,
    brandColor2: brandColor2 ?? this.brandColor2,
    brandColor3: brandColor3 ?? this.brandColor3,
    brandColor4: brandColor4 ?? this.brandColor4,
    brandColor5: brandColor5 ?? this.brandColor5,
    brandColor6: brandColor6 ?? this.brandColor6,
    brandColor7: brandColor7 ?? this.brandColor7,
    brandColor8: brandColor8 ?? this.brandColor8,
    brandColor9: brandColor9 ?? this.brandColor9,
    brandColor10: brandColor10 ?? this.brandColor10,
    warningColor1: warningColor1 ?? this.warningColor1,
    warningColor2: warningColor2 ?? this.warningColor2,
    warningColor3: warningColor3 ?? this.warningColor3,
    warningColor4: warningColor4 ?? this.warningColor4,
    warningColor5: warningColor5 ?? this.warningColor5,
    warningColor6: warningColor6 ?? this.warningColor6,
    warningColor7: warningColor7 ?? this.warningColor7,
    warningColor8: warningColor8 ?? this.warningColor8,
    warningColor9: warningColor9 ?? this.warningColor9,
    warningColor10: warningColor10 ?? this.warningColor10,
    errorColor1: errorColor1 ?? this.errorColor1,
    errorColor2: errorColor2 ?? this.errorColor2,
    errorColor3: errorColor3 ?? this.errorColor3,
    errorColor4: errorColor4 ?? this.errorColor4,
    errorColor5: errorColor5 ?? this.errorColor5,
    errorColor6: errorColor6 ?? this.errorColor6,
    errorColor7: errorColor7 ?? this.errorColor7,
    errorColor8: errorColor8 ?? this.errorColor8,
    errorColor9: errorColor9 ?? this.errorColor9,
    errorColor10: errorColor10 ?? this.errorColor10,
    successColor1: successColor1 ?? this.successColor1,
    successColor2: successColor2 ?? this.successColor2,
    successColor3: successColor3 ?? this.successColor3,
    successColor4: successColor4 ?? this.successColor4,
    successColor5: successColor5 ?? this.successColor5,
    successColor6: successColor6 ?? this.successColor6,
    successColor7: successColor7 ?? this.successColor7,
    successColor8: successColor8 ?? this.successColor8,
    successColor9: successColor9 ?? this.successColor9,
    successColor10: successColor10 ?? this.successColor10,
    grayColor1: grayColor1 ?? this.grayColor1,
    grayColor2: grayColor2 ?? this.grayColor2,
    grayColor3: grayColor3 ?? this.grayColor3,
    grayColor4: grayColor4 ?? this.grayColor4,
    grayColor5: grayColor5 ?? this.grayColor5,
    grayColor6: grayColor6 ?? this.grayColor6,
    grayColor7: grayColor7 ?? this.grayColor7,
    grayColor8: grayColor8 ?? this.grayColor8,
    grayColor9: grayColor9 ?? this.grayColor9,
    grayColor10: grayColor10 ?? this.grayColor10,
    grayColor11: grayColor11 ?? this.grayColor11,
    grayColor12: grayColor12 ?? this.grayColor12,
    grayColor13: grayColor13 ?? this.grayColor13,
    grayColor14: grayColor14 ?? this.grayColor14,
    fontGray1: fontGray1 ?? this.fontGray1,
    fontGray2: fontGray2 ?? this.fontGray2,
    fontGray3: fontGray3 ?? this.fontGray3,
    fontGray4: fontGray4 ?? this.fontGray4,
    fontWhite1: fontWhite1 ?? this.fontWhite1,
    fontWhite2: fontWhite2 ?? this.fontWhite2,
    fontWhite3: fontWhite3 ?? this.fontWhite3,
    fontWhite4: fontWhite4 ?? this.fontWhite4,
    shadow1: shadow1 ?? this.shadow1,
    shadow2: shadow2 ?? this.shadow2,
    shadow3: shadow3 ?? this.shadow3,
    shadow4: shadow4 ?? this.shadow4,
    maskActive: maskActive ?? this.maskActive,
    maskDisabled: maskDisabled ?? this.maskDisabled,
    spacer: spacer ?? this.spacer,
    spacer1: spacer1 ?? this.spacer1,
    spacer2: spacer2 ?? this.spacer2,
    spacer3: spacer3 ?? this.spacer3,
    spacer4: spacer4 ?? this.spacer4,
    spacer5: spacer5 ?? this.spacer5,
    spacer6: spacer6 ?? this.spacer6,
    font: font ?? this.font,
    fontXs: fontXs ?? this.fontXs,
    fontS: fontS ?? this.fontS,
    fontBase: fontBase ?? this.fontBase,
    fontM: fontM ?? this.fontM,
    fontL: fontL ?? this.fontL,
    fontXl: fontXl ?? this.fontXl,
    radiusSmall: radiusSmall ?? this.radiusSmall,
    radiusDefault: radiusDefault ?? this.radiusDefault,
    radiusLarge: radiusLarge ?? this.radiusLarge,
    radiusExtraL: radiusExtraL ?? this.radiusExtraL,
    radiusRound: radiusRound ?? this.radiusRound,
    radiusCircle: radiusCircle ?? this.radiusCircle,
  );
}