copyWith method
Implementation
RtcPlayerValue copyWith({
int? cameraTextureId,
int? remoteTextureId,
String? userName,
String? userId,
String? errorDescription,
bool? isInitialized,
VideoEventType? connectState,
}) {
return RtcPlayerValue(
cameraTextureId: cameraTextureId ?? this.cameraTextureId,
remoteTextureId: remoteTextureId ?? this.remoteTextureId,
userName: userName ?? this.userName,
userId: userId ?? this.userId,
errorDescription: errorDescription ?? this.errorDescription,
isInitialized: isInitialized ?? this.isInitialized,
connectState: connectState ?? this.connectState,
);
}