copyWith method
TWidgetThemeExtension
copyWith({
- MaterialColor? primary,
- MaterialColor? success,
- MaterialColor? warning,
- MaterialColor? info,
- MaterialColor? danger,
- MaterialColor? grey,
- Color? layoutFrame,
- TButtonType? buttonType,
- TVariant? chipType,
- TVariant? toastType,
- TVariant? tooltipType,
- TInputFieldTheme? inputFieldTheme,
- TTextFieldTheme? textFieldTheme,
- TTagsFieldTheme? tagsFieldTheme,
- TNumberFieldTheme? numberFieldTheme,
- TFilePickerTheme? filePickerTheme,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
TWidgetThemeExtension copyWith({
MaterialColor? primary,
MaterialColor? success,
MaterialColor? warning,
MaterialColor? info,
MaterialColor? danger,
MaterialColor? grey,
Color? layoutFrame,
TButtonType? buttonType,
TVariant? chipType,
TVariant? toastType,
TVariant? tooltipType,
TInputFieldTheme? inputFieldTheme,
TTextFieldTheme? textFieldTheme,
TTagsFieldTheme? tagsFieldTheme,
TNumberFieldTheme? numberFieldTheme,
TFilePickerTheme? filePickerTheme,
}) {
return TWidgetThemeExtension(
primary: primary ?? this.primary,
success: success ?? this.success,
warning: warning ?? this.warning,
info: info ?? this.info,
danger: danger ?? this.danger,
grey: grey ?? this.grey,
layoutFrame: layoutFrame ?? this.layoutFrame,
buttonType: buttonType ?? this.buttonType,
chipType: chipType ?? this.chipType,
toastType: toastType ?? this.toastType,
tooltipType: tooltipType ?? this.tooltipType,
inputFieldTheme: inputFieldTheme ?? this.inputFieldTheme,
textFieldTheme: textFieldTheme ?? this.textFieldTheme,
tagsFieldTheme: tagsFieldTheme ?? this.tagsFieldTheme,
numberFieldTheme: numberFieldTheme ?? this.numberFieldTheme,
filePickerTheme: filePickerTheme ?? this.filePickerTheme,
);
}