copyWith method
IconButtonProps
copyWith({
- Widget? icon,
- void onPressed()?,
- ColorVariant? color,
- StyleVariant? style,
- ComponentSize? size,
- bool? disabled,
- bool? loading,
- 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,
);
}