copyWith method

ChipSelectionItemStyle copyWith({
  1. Color? color,
  2. EdgeInsetsGeometry? margin,
  3. EdgeInsetsGeometry? padding,
  4. double? elevation,
  5. double? pressElevation,
  6. bool? showCheckmark,
  7. TextStyle? labelStyle,
  8. EdgeInsetsGeometry? labelPadding,
  9. Brightness? brightness,
  10. Color? borderColor,
  11. double? borderOpacity,
  12. double? borderWidth,
  13. BorderRadiusGeometry? borderRadius,
  14. BorderStyle? borderStyle,
  15. OutlinedBorder? borderShape,
  16. Color? avatarBorderColor,
  17. double? avatarBorderWidth,
  18. BorderRadiusGeometry? avatarBorderRadius,
  19. BorderStyle? avatarBorderStyle,
  20. ShapeBorder? avatarBorderShape,
  21. Clip? clipBehavior,
  22. MaterialTapTargetSize? materialTapTargetSize,
  23. Color? disabledColor,
})

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

Implementation

ChipSelectionItemStyle copyWith({
  Color? color,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  double? elevation,
  double? pressElevation,
  bool? showCheckmark,
  TextStyle? labelStyle,
  EdgeInsetsGeometry? labelPadding,
  Brightness? brightness,
  Color? borderColor,
  double? borderOpacity,
  double? borderWidth,
  BorderRadiusGeometry? borderRadius,
  BorderStyle? borderStyle,
  OutlinedBorder? borderShape,
  Color? avatarBorderColor,
  double? avatarBorderWidth,
  BorderRadiusGeometry? avatarBorderRadius,
  BorderStyle? avatarBorderStyle,
  ShapeBorder? avatarBorderShape,
  Clip? clipBehavior,
  MaterialTapTargetSize? materialTapTargetSize,
  Color? disabledColor,
}) {
  return ChipSelectionItemStyle(
    color: color ?? this.color,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    elevation: elevation ?? this.elevation,
    pressElevation: pressElevation ?? this.pressElevation,
    showCheckmark: showCheckmark ?? this.showCheckmark,
    labelStyle: labelStyle ?? this.labelStyle,
    labelPadding: labelPadding ?? this.labelPadding,
    brightness: brightness ?? this.brightness,
    borderColor: borderColor ?? this.borderColor,
    borderOpacity: borderOpacity ?? this.borderOpacity,
    borderWidth: borderWidth ?? this.borderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    borderStyle: borderStyle ?? this.borderStyle,
    borderShape: borderShape ?? this.borderShape,
    avatarBorderColor: avatarBorderColor ?? this.avatarBorderColor,
    avatarBorderWidth: avatarBorderWidth ?? this.avatarBorderWidth,
    avatarBorderRadius: avatarBorderRadius ?? this.avatarBorderRadius,
    avatarBorderStyle: avatarBorderStyle ?? this.avatarBorderStyle,
    avatarBorderShape: avatarBorderShape ?? this.avatarBorderShape,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    materialTapTargetSize:
        materialTapTargetSize ?? this.materialTapTargetSize,
    disabledColor: disabledColor ?? this.disabledColor,
  );
}