copyWith method

ChipThemeData copyWith({
  1. MaterialStateProperty<Color?>? color,
  2. Color? backgroundColor,
  3. Color? deleteIconColor,
  4. Color? disabledColor,
  5. Color? selectedColor,
  6. Color? secondarySelectedColor,
  7. Color? shadowColor,
  8. Color? surfaceTintColor,
  9. Color? selectedShadowColor,
  10. bool? showCheckmark,
  11. Color? checkmarkColor,
  12. EdgeInsetsGeometry? labelPadding,
  13. EdgeInsetsGeometry? padding,
  14. BorderSide? side,
  15. OutlinedBorder? shape,
  16. TextStyle? labelStyle,
  17. TextStyle? secondaryLabelStyle,
  18. Brightness? brightness,
  19. double? elevation,
  20. double? pressElevation,
  21. IconThemeData? iconTheme,
  22. BoxConstraints? avatarBoxConstraints,
  23. BoxConstraints? deleteIconBoxConstraints,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

ChipThemeData copyWith({
  MaterialStateProperty<Color?>? color,
  Color? backgroundColor,
  Color? deleteIconColor,
  Color? disabledColor,
  Color? selectedColor,
  Color? secondarySelectedColor,
  Color? shadowColor,
  Color? surfaceTintColor,
  Color? selectedShadowColor,
  bool? showCheckmark,
  Color? checkmarkColor,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? padding,
  BorderSide? side,
  OutlinedBorder? shape,
  TextStyle? labelStyle,
  TextStyle? secondaryLabelStyle,
  Brightness? brightness,
  double? elevation,
  double? pressElevation,
  IconThemeData? iconTheme,
  BoxConstraints? avatarBoxConstraints,
  BoxConstraints? deleteIconBoxConstraints,
}) {
  return ChipThemeData(
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    deleteIconColor: deleteIconColor ?? this.deleteIconColor,
    disabledColor: disabledColor ?? this.disabledColor,
    selectedColor: selectedColor ?? this.selectedColor,
    secondarySelectedColor: secondarySelectedColor ?? this.secondarySelectedColor,
    shadowColor: shadowColor ?? this.shadowColor,
    surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
    selectedShadowColor: selectedShadowColor ?? this.selectedShadowColor,
    showCheckmark: showCheckmark ?? this.showCheckmark,
    checkmarkColor: checkmarkColor ?? this.checkmarkColor,
    labelPadding: labelPadding ?? this.labelPadding,
    padding: padding ?? this.padding,
    side: side ?? this.side,
    shape: shape ?? this.shape,
    labelStyle: labelStyle ?? this.labelStyle,
    secondaryLabelStyle: secondaryLabelStyle ?? this.secondaryLabelStyle,
    brightness: brightness ?? this.brightness,
    elevation: elevation ?? this.elevation,
    pressElevation: pressElevation ?? this.pressElevation,
    iconTheme: iconTheme ?? this.iconTheme,
    avatarBoxConstraints: avatarBoxConstraints ?? this.avatarBoxConstraints,
    deleteIconBoxConstraints: deleteIconBoxConstraints ?? this.deleteIconBoxConstraints,
  );
}