copyWith method

AudioPublishOptions copyWith({
  1. AudioEncoding? encoding,
  2. bool? dtx,
  3. String? name,
  4. String? stream,
  5. bool? red,
  6. bool? preConnect,
})

Implementation

AudioPublishOptions copyWith({
  AudioEncoding? encoding,
  bool? dtx,
  String? name,
  String? stream,
  bool? red,
  bool? preConnect,
}) =>
    AudioPublishOptions(
      encoding: encoding ?? this.encoding,
      dtx: dtx ?? this.dtx,
      name: name ?? this.name,
      stream: stream ?? this.stream,
      red: red ?? this.red,
      preConnect: preConnect ?? this.preConnect,
    );