copyWith method

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

Implementation

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