copyWith method

DropDownThemeData copyWith({
  1. IconThemeData? iconThemeData,
  2. TextStyle? textStyle,
  3. Color? disabledColor,
  4. Color? color,
  5. Color? focusColor,
  6. Color? hoverColor,
  7. Color? waitingColor,
  8. Color? backgroundColor,
  9. Color? hoverBackgroundColor,
  10. Color? waitingBackgroundColor,
  11. Color? disabledBackgroundColor,
  12. BorderSide? border,
})

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