copyWith method

Linear copyWith({
  1. Complex? a,
  2. Complex? b,
})

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

Implementation

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