copyWith method

RTCVideoValue copyWith({
  1. double? width,
  2. double? height,
  3. int? rotation,
  4. bool renderVideo = true,
})

Implementation

RTCVideoValue copyWith({
  double? width,
  double? height,
  int? rotation,
  bool renderVideo = true,
}) {
  return RTCVideoValue(
    width: width ?? this.width,
    height: height ?? this.height,
    rotation: rotation ?? this.rotation,
    renderVideo: this.width != 0 && this.height != 0 && renderVideo,
  );
}