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