copyWith method
OpenTokValue
copyWith({
- ConnectionState? state,
- bool? audioEnabled,
- bool? videoEnabled,
- 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,
);
}