copyWith method

UArMaterial copyWith({
  1. Color? color,
  2. double? metallic,
  3. double? roughness,
  4. double? opacity,
  5. Color? emissive,
  6. UArSource? texture,
  7. bool? unlit,
  8. bool? doubleSided,
  9. bool? occluder,
  10. bool? renderOnTop,
})

Implementation

UArMaterial copyWith({Color? color, double? metallic, double? roughness, double? opacity, Color? emissive, UArSource? texture, bool? unlit, bool? doubleSided, bool? occluder, bool? renderOnTop}) =>
    UArMaterial(
      color: color ?? this.color,
      metallic: metallic ?? this.metallic,
      roughness: roughness ?? this.roughness,
      opacity: opacity ?? this.opacity,
      emissive: emissive ?? this.emissive,
      texture: texture ?? this.texture,
      unlit: unlit ?? this.unlit,
      doubleSided: doubleSided ?? this.doubleSided,
      occluder: occluder ?? this.occluder,
      renderOnTop: renderOnTop ?? this.renderOnTop,
    );