copyWith method

PolarComplex copyWith({
  1. double? r,
  2. double? phiRadians,
  3. double? phiDegrees,
})

Creates a deep copy of this object and replaces (if non-null) the given values with the old ones.

Implementation

PolarComplex copyWith({
  double? r,
  double? phiRadians,
  double? phiDegrees,
}) =>
    PolarComplex(
      r: r ?? this.r,
      phiDegrees: phiDegrees ?? this.phiDegrees,
      phiRadians: phiRadians ?? this.phiRadians,
    );