copyWith method

This with the named slots changed.

Implementation

DesignStyle copyWith({
  WidgetStateProperty<Color?>? fill,
  WidgetStateProperty<Color?>? foreground,
  WidgetStateProperty<Color?>? edge,
  WidgetStateProperty<Color?>? overlay,
  WidgetStateProperty<BorderSide?>? side,
  WidgetStateProperty<OutlinedBorder?>? shape,
  WidgetStateProperty<EdgeInsetsGeometry?>? padding,
  WidgetStateProperty<Size?>? minimumSize,
  WidgetStateProperty<TextStyle?>? textStyle,
  WidgetStateProperty<double?>? iconSize,
}) => DesignStyle(
  fill: fill ?? this.fill,
  foreground: foreground ?? this.foreground,
  edge: edge ?? this.edge,
  overlay: overlay ?? this.overlay,
  side: side ?? this.side,
  shape: shape ?? this.shape,
  padding: padding ?? this.padding,
  minimumSize: minimumSize ?? this.minimumSize,
  textStyle: textStyle ?? this.textStyle,
  iconSize: iconSize ?? this.iconSize,
);