copyWith method

DurandKerner copyWith({
  1. List<Complex>? coefficients,
  2. List<Complex>? initialGuess,
  3. double? precision,
  4. int? maxSteps,
})

Creates a deep copy of this object with the given fields replaced with the new values.

Implementation

DurandKerner copyWith({
  List<Complex>? coefficients,
  List<Complex>? initialGuess,
  double? precision,
  int? maxSteps,
}) =>
    DurandKerner(
      coefficients: coefficients ?? List<Complex>.from(this.coefficients),
      initialGuess: initialGuess ?? List<Complex>.from(this.initialGuess),
      precision: precision ?? this.precision,
      maxSteps: maxSteps ?? this.maxSteps,
    );