copyWith method
Returns a copy with selected values replaced.
Implementation
RenderEnvironment copyWith({
Vector3? skyColor,
double? skyAlpha,
double? ambientIntensity,
double? reflectionIntensity,
}) {
return RenderEnvironment(
skyColor: skyColor ?? this.skyColor,
skyAlpha: skyAlpha ?? this.skyAlpha,
ambientIntensity: ambientIntensity ?? this.ambientIntensity,
reflectionIntensity: reflectionIntensity ?? this.reflectionIntensity,
);
}