copyWith method

RecordingValue copyWith({
  1. bool? isInitialized,
  2. bool? isRecording,
  3. bool? isPause,
  4. String? errorDescription,
  5. dynamic event,
})

Implementation

RecordingValue copyWith({
  bool? isInitialized,
  bool? isRecording,
  bool? isPause,
  String? errorDescription,
  dynamic event,
}) {
  return RecordingValue(
      isInitialized: isInitialized ?? this.isInitialized,
      isRecording: isRecording ?? this.isRecording,
      errorDescription: errorDescription ?? this.errorDescription,
      event: event ?? this.event,
      isPause: isPause ?? this.isPause);
}