copyWith method

IconButtonProps copyWith({
  1. Widget? icon,
  2. void onPressed()?,
  3. ColorVariant? color,
  4. StyleVariant? style,
  5. ComponentSize? size,
  6. bool? disabled,
  7. bool? loading,
  8. String? tooltip,
})

Implementation

IconButtonProps copyWith({
  Widget? icon,
  void Function()? onPressed,
  ColorVariant? color,
  StyleVariant? style,
  ComponentSize? size,
  bool? disabled,
  bool? loading,
  String? tooltip,
}) {
  return IconButtonProps(
    icon: icon ?? this.icon,
    onPressed: onPressed ?? this.onPressed,
    color: color ?? this.color,
    style: style ?? this.style,
    size: size ?? this.size,
    disabled: disabled ?? this.disabled,
    loading: loading ?? this.loading,
    tooltip: tooltip ?? this.tooltip,
  );
}