copyWith method

VoiceButtonConfig copyWith({
  1. Widget? playIcon,
  2. Widget? pauseIcon,
  3. Widget? errorIcon,
  4. Color? buttonColor,
  5. Color? buttonIconColor,
  6. double? buttonSize,
  7. bool? useSimplePlayIcon,
  8. double? simpleIconSize,
})

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,
  );
}