copyWith method
Makes a copy of DropDownThemeData overwriting selected fields.
Implementation
DropDownThemeData copyWith({
IconThemeData? iconThemeData,
TextStyle? textStyle,
Color? disabledColor,
Color? color,
Color? focusColor,
Color? hoverColor,
Color? waitingColor,
Color? backgroundColor,
Color? hoverBackgroundColor,
Color? waitingBackgroundColor,
Color? disabledBackgroundColor,
BorderSide? border,
}) {
return DropDownThemeData(
iconThemeData: iconThemeData ?? this.iconThemeData,
textStyle: textStyle ?? this.textStyle,
disabledColor: disabledColor ?? this.disabledColor,
color: color ?? this.color,
focusColor: focusColor ?? this.focusColor,
hoverColor: hoverColor ?? this.hoverColor,
waitingColor: waitingColor ?? this.waitingColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
hoverBackgroundColor: hoverBackgroundColor ?? this.hoverBackgroundColor,
waitingBackgroundColor:
waitingBackgroundColor ?? this.waitingBackgroundColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
border: border ?? this.border,
);
}