copyWith method

  1. @useResult
RenderConfig copyWith({
  1. int? width,
  2. int? height,
  3. int? fps,
  4. int? frameCount,
  5. int? startFrame,
  6. Quality? quality,
  7. bool? cacheEnabled,
})

A copy with the given fields replaced (re-validated on construction).

Implementation

@useResult
RenderConfig copyWith({
  int? width,
  int? height,
  int? fps,
  int? frameCount,
  int? startFrame,
  Quality? quality,
  bool? cacheEnabled,
}) => RenderConfig(
  width: width ?? this.width,
  height: height ?? this.height,
  fps: fps ?? this.fps,
  frameCount: frameCount ?? this.frameCount,
  startFrame: startFrame ?? this.startFrame,
  quality: quality ?? this.quality,
  cacheEnabled: cacheEnabled ?? this.cacheEnabled,
);