copyWith method

TrackerConfig copyWith({
  1. double? defaultMaxPathCost,
  2. double? shortWordPathCost,
  3. double? mediumWordPathCost,
  4. int? maxSkipWords,
  5. double? acousticConfusionCost,
  6. double? standardInsertionCost,
  7. double? standardDeletionCost,
  8. double? harakatDurationSeconds,
  9. double? maxTokenDurationAllowed,
  10. double? lookaheadDelay,
  11. 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,
  );
}