copyWith method
SACThemeExtension
copyWith({
- double? inputHeight,
- double? phoneFieldHeight,
- double? dropdownHeight,
- double? buttonHeight,
- Color? success,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
SACThemeExtension copyWith({
double? inputHeight,
double? phoneFieldHeight,
double? dropdownHeight,
double? buttonHeight,
Color? success,
}) {
return SACThemeExtension(
inputHeight: inputHeight ?? this.inputHeight,
phoneFieldHeight: phoneFieldHeight ?? this.phoneFieldHeight,
dropdownHeight: dropdownHeight ?? this.dropdownHeight,
buttonHeight: buttonHeight ?? this.buttonHeight,
success: success ?? this.success,
);
}