copyWith method

  1. @override
SdChipThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? selectedColor,
  3. Color? disabledColor,
  4. Color? textColor,
  5. Color? selectedTextColor,
  6. Color? disabledTextColor,
  7. Color? borderColor,
  8. Color? selectedBorderColor,
  9. Color? disabledBorderColor,
  10. TextStyle? textStyle,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. BorderRadiusGeometry? borderRadius,
  14. double? iconSize,
  15. double? elevation,
  16. double? selectedElevation,
  17. double? borderWidth,
  18. double? selectedBorderWidth,
  19. Duration? duration,
  20. Curve? curve,
  21. double? pressedScale,
  22. Color? shadowColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
SdChipThemeData copyWith({
  Color? backgroundColor,
  Color? selectedColor,
  Color? disabledColor,
  Color? textColor,
  Color? selectedTextColor,
  Color? disabledTextColor,
  Color? borderColor,
  Color? selectedBorderColor,
  Color? disabledBorderColor,
  TextStyle? textStyle,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  BorderRadiusGeometry? borderRadius,
  double? iconSize,
  double? elevation,
  double? selectedElevation,
  double? borderWidth,
  double? selectedBorderWidth,
  Duration? duration,
  Curve? curve,
  double? pressedScale,
  Color? shadowColor,
}) {
  return SdChipThemeData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    selectedColor: selectedColor ?? this.selectedColor,
    disabledColor: disabledColor ?? this.disabledColor,
    textColor: textColor ?? this.textColor,
    selectedTextColor: selectedTextColor ?? this.selectedTextColor,
    disabledTextColor: disabledTextColor ?? this.disabledTextColor,
    borderColor: borderColor ?? this.borderColor,
    selectedBorderColor: selectedBorderColor ?? this.selectedBorderColor,
    disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    borderRadius: borderRadius ?? this.borderRadius,
    iconSize: iconSize ?? this.iconSize,
    elevation: elevation ?? this.elevation,
    selectedElevation: selectedElevation ?? this.selectedElevation,
    borderWidth: borderWidth ?? this.borderWidth,
    selectedBorderWidth: selectedBorderWidth ?? this.selectedBorderWidth,
    duration: duration ?? this.duration,
    curve: curve ?? this.curve,
    pressedScale: pressedScale ?? this.pressedScale,
    shadowColor: shadowColor ?? this.shadowColor,
  );
}