copyWith method
Implementation
VoiceButtonConfig copyWith({
Widget? playIcon,
Widget? pauseIcon,
Widget? errorIcon,
Color? buttonColor,
Color? buttonIconColor,
double? buttonSize,
bool? useSimplePlayIcon,
double? simpleIconSize,
}) {
return VoiceButtonConfig(
playIcon: playIcon ?? this.playIcon,
pauseIcon: pauseIcon ?? this.pauseIcon,
errorIcon: errorIcon ?? this.errorIcon,
buttonColor: buttonColor ?? this.buttonColor,
buttonIconColor: buttonIconColor ?? this.buttonIconColor,
buttonSize: buttonSize ?? this.buttonSize,
useSimplePlayIcon: useSimplePlayIcon ?? this.useSimplePlayIcon,
simpleIconSize: simpleIconSize ?? this.simpleIconSize,
);
}