copyWith method

LensSpec copyWith({
  1. double? strength,
  2. double? dispersion,
  3. double? blur,
})

A copy with the given strength, dispersion or blur replaced.

Implementation

LensSpec copyWith({double? strength, double? dispersion, double? blur}) => LensSpec(
  strength: strength ?? this.strength,
  dispersion: dispersion ?? this.dispersion,
  depth: depth,
  dome: dome,
  splay: splay,
  relative: relative,
  bezel: bezel,
  maxDepth: maxDepth,
  ink: ink,
  blur: blur ?? this.blur,
  paintsLight: paintsLight,
  darkStrength: darkStrength,
);