copyWith method

DiveVideoInfo copyWith({
  1. String? graphicsModule,
  2. int? fps,
  3. int? baseResolution,
  4. int? outputResolution,
  5. DiveVideoFormat? outputFormat,
  6. int? adapter,
  7. bool? gpuConversion,
  8. int? colorspace,
  9. int? range,
  10. int? scaleType,
})

Implementation

DiveVideoInfo copyWith({
  String? graphicsModule,
  int? fps,
  int? baseResolution,
  int? outputResolution,
  DiveVideoFormat? outputFormat,
  int? adapter,
  bool? gpuConversion,
  int? colorspace,
  int? range,
  int? scaleType,
}) {
  return DiveVideoInfo(
    graphicsModule: graphicsModule ?? this.graphicsModule,
    fps: fps as DiveCoreFPS? ?? this.fps,
    baseResolution: baseResolution as DiveCoreResolution? ?? this.baseResolution,
    outputResolution: outputResolution as DiveCoreResolution? ?? this.outputResolution,
    outputFormat: outputFormat ?? this.outputFormat,
    adapter: adapter ?? this.adapter,
    gpuConversion: gpuConversion ?? this.gpuConversion,
    colorspace: colorspace ?? this.colorspace,
    range: range ?? this.range,
    scaleType: scaleType ?? this.scaleType,
  );
}