copyWith method

OpenTokValue copyWith({
  1. ConnectionState? state,
  2. bool? audioEnabled,
  3. bool? videoEnabled,
  4. String? errorDescription,
})

Returns a new instance that has the same values as this current instance, except for any overrides passed in as arguments to copyWith.

Implementation

OpenTokValue copyWith({
  open_tok.ConnectionState? state,
  bool? audioEnabled,
  bool? videoEnabled,
  String? errorDescription,
}) {
  return OpenTokValue(
    state: state ?? this.state,
    audioEnabled: audioEnabled ?? this.audioEnabled,
    videoEnabled: videoEnabled ?? this.videoEnabled,
    errorDescription: errorDescription,
  );
}