copyWith method

LightSource copyWith({
  1. double? dx,
  2. double? dy,
})

Implementation

LightSource copyWith({
  double? dx,
  double? dy,
}) {
  return LightSource(
    dx ?? this.dx,
    dy ?? this.dy,
  );
}