copyWith method
TrackerConfig
copyWith({
- double? defaultMaxPathCost,
- double? shortWordPathCost,
- double? mediumWordPathCost,
- int? maxSkipWords,
- double? acousticConfusionCost,
- double? standardInsertionCost,
- double? standardDeletionCost,
- double? harakatDurationSeconds,
- double? maxTokenDurationAllowed,
- double? lookaheadDelay,
- bool? hideExpectedAsrNoise,
Creates a copy of this config with replaced fields.
Implementation
TrackerConfig copyWith({
double? defaultMaxPathCost,
double? shortWordPathCost,
double? mediumWordPathCost,
int? maxSkipWords,
double? acousticConfusionCost,
double? standardInsertionCost,
double? standardDeletionCost,
double? harakatDurationSeconds,
double? maxTokenDurationAllowed,
double? lookaheadDelay,
bool? hideExpectedAsrNoise,
}) {
return TrackerConfig(
defaultMaxPathCost: defaultMaxPathCost ?? this.defaultMaxPathCost,
shortWordPathCost: shortWordPathCost ?? this.shortWordPathCost,
mediumWordPathCost: mediumWordPathCost ?? this.mediumWordPathCost,
maxSkipWords: maxSkipWords ?? this.maxSkipWords,
acousticConfusionCost: acousticConfusionCost ?? this.acousticConfusionCost,
standardInsertionCost: standardInsertionCost ?? this.standardInsertionCost,
standardDeletionCost: standardDeletionCost ?? this.standardDeletionCost,
harakatDurationSeconds: harakatDurationSeconds ?? this.harakatDurationSeconds,
maxTokenDurationAllowed: maxTokenDurationAllowed ?? this.maxTokenDurationAllowed,
lookaheadDelay: lookaheadDelay ?? this.lookaheadDelay,
hideExpectedAsrNoise: hideExpectedAsrNoise ?? this.hideExpectedAsrNoise,
);
}