copyWith method
- Key? key,
- String? label,
- VoidCallback? onPressed,
- IconData? icon,
Creates a clone.
Implementation
ZetaTileButton copyWith({
Key? key,
String? label,
VoidCallback? onPressed,
IconData? icon,
}) {
return ZetaTileButton(
key: key ?? this.key,
label: label ?? this.label,
onPressed: onPressed ?? this.onPressed,
icon: icon ?? this.icon,
);
}