copyWith method

ErrorGains copyWith({
  1. double? baseChance,
  2. double? clusterBoost,
  3. double? dayShare,
  4. Map<HumanErrorKind, double>? weights,
})

Uma cópia com alguns números trocados (os testes de controle o usam).

Implementation

ErrorGains copyWith({
  double? baseChance,
  double? clusterBoost,
  double? dayShare,
  Map<HumanErrorKind, double>? weights,
}) => ErrorGains(
  baseChance: baseChance ?? this.baseChance,
  difficultyBeta: difficultyBeta,
  speedGain: speedGain,
  clusterBoost: clusterBoost ?? this.clusterBoost,
  slowMinShare: slowMinShare,
  slowMaxShare: slowMaxShare,
  dayShare: dayShare ?? this.dayShare,
  warmupFactor: warmupFactor,
  familiarityGain: familiarityGain,
  weights: weights ?? this.weights,
);