copyWith method
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,
);
}