copyWith method
- double? baseChance,
- double? clusterBoost,
- 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,
);