copyWith method

GlassStyle copyWith({
  1. Color? tint,
  2. Color? edge,
  3. Color? drop,
  4. double? rimShine,
  5. double? blur,
  6. double? saturation,
  7. double? brightness,
  8. double? bend,
  9. double? dispersion,
  10. LensSpec? spec,
  11. LensRim? rim,
  12. double? amount,
  13. GlassMode? mode,
  14. double? magnification,
  15. Offset? magnifyOffset,
})

A copy with the given fields replaced.

Implementation

GlassStyle copyWith({
  Color? tint,
  Color? edge,
  Color? drop,
  double? rimShine,
  double? blur,
  double? saturation,
  double? brightness,
  double? bend,
  double? dispersion,
  LensSpec? spec,
  LensRim? rim,
  double? amount,
  GlassMode? mode,
  double? magnification,
  Offset? magnifyOffset,
}) {
  return GlassStyle(
    tint: tint ?? this.tint,
    edge: edge ?? this.edge,
    drop: drop ?? this.drop,
    rimShine: rimShine ?? this.rimShine,
    blur: blur ?? this.blur,
    saturation: saturation ?? this.saturation,
    brightness: brightness ?? this.brightness,
    bend: bend ?? this.bend,
    dispersion: dispersion ?? this.dispersion,
    spec: spec ?? this.spec,
    rim: rim ?? this.rim,
    amount: amount ?? this.amount,
    mode: mode ?? this.mode,
    magnification: magnification ?? this.magnification,
    magnifyOffset: magnifyOffset ?? this.magnifyOffset,
  );
}