copyWith method
Implementation
SnackBarAction copyWith({
String? label,
VoidCallback? onPressed,
Color? textColor,
Color? disabledTextColor,
Color? backgroundColor,
Color? disabledBackgroundColor,
}) {
return SnackBarAction(
textColor: textColor ?? this.textColor,
disabledTextColor: disabledTextColor ?? this.disabledTextColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
label: label ?? this.label,
onPressed: onPressed ?? this.onPressed,
);
}