copyWith method

ZetaTileButton copyWith({
  1. Key? key,
  2. String? label,
  3. VoidCallback? onPressed,
  4. 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,
  );
}