copyWith method

RtcPlayerValue copyWith({
  1. int? cameraTextureId,
  2. int? remoteTextureId,
  3. String? userName,
  4. String? userId,
  5. String? errorDescription,
  6. bool? isInitialized,
  7. VideoEventType? connectState,
})

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,
  );
}