copyWith method
Cria uma cópia com as propriedades alteradas.
Implementation
FindDropdownThemeData copyWith({
Color? dropdownBackgroundColor,
Color? dropdownBorderColor,
Color? iconColor,
TextStyle? selectedItemStyle,
Color? validationErrorColor,
TextStyle? validationMessageStyle,
String? fontFamily,
}) {
return FindDropdownThemeData(
dropdownBackgroundColor:
dropdownBackgroundColor ?? this.dropdownBackgroundColor,
dropdownBorderColor: dropdownBorderColor ?? this.dropdownBorderColor,
iconColor: iconColor ?? this.iconColor,
selectedItemStyle: selectedItemStyle ?? this.selectedItemStyle,
validationErrorColor: validationErrorColor ?? this.validationErrorColor,
validationMessageStyle:
validationMessageStyle ?? this.validationMessageStyle,
fontFamily: fontFamily ?? this.fontFamily,
);
}