copyWith method

Cubic copyWith({
  1. Complex? a,
  2. Complex? b,
  3. Complex? c,
  4. Complex? d,
})

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

Implementation

Cubic copyWith({
  Complex? a,
  Complex? b,
  Complex? c,
  Complex? d,
}) =>
    Cubic(
      a: a ?? this.a,
      b: b ?? this.b,
      c: c ?? this.c,
      d: d ?? this.d,
    );