copyWith method

RenderEnvironment copyWith({
  1. Vector3? skyColor,
  2. double? skyAlpha,
  3. double? ambientIntensity,
  4. double? reflectionIntensity,
})

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