copyWith method
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,
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,
);
}