copyWith method

Laguerre copyWith({
  1. List<Complex>? coefficients,
  2. 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

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