copyWith method
IconButtonProps
copyWith({
- Component? icon,
- void onPressed()?,
- IconButtonVariant? variant,
- IconButtonSize? size,
- bool? disabled,
- bool? loading,
- String? tooltip,
Implementation
IconButtonProps copyWith({
Component? icon,
void Function()? onPressed,
IconButtonVariant? variant,
IconButtonSize? size,
bool? disabled,
bool? loading,
String? tooltip,
}) {
return IconButtonProps(
icon: icon ?? this.icon,
onPressed: onPressed ?? this.onPressed,
variant: variant ?? this.variant,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
loading: loading ?? this.loading,
tooltip: tooltip ?? this.tooltip,
);
}