copyWith method

AudioValue copyWith({
  1. bool? isInitialized,
  2. bool? isStreaming,
  3. String? errorDescription,
  4. bool? isMuted,
  5. dynamic event,
})

Implementation

AudioValue copyWith({
  bool? isInitialized,
  bool? isStreaming,
  String? errorDescription,
  bool? isMuted,
  dynamic event,
}) {
  return AudioValue(
      isInitialized: isInitialized ?? this.isInitialized,
      isStreaming: isStreaming ?? this.isStreaming,
      errorDescription: errorDescription ?? this.errorDescription,
      event: event ?? this.event,
      isMuted: isMuted ?? this.isMuted);
}