copyWith method

TrackerConfig copyWith({
  1. RecitationSpeed? recitationSpeed,
  2. MatchingStrictness? matchingStrictness,
  3. bool? enableEarlyMatching,
  4. bool? enableAutoReanchor,
  5. int? reanchorStallThreshold,
})

Implementation

TrackerConfig copyWith({
  RecitationSpeed? recitationSpeed,
  MatchingStrictness? matchingStrictness,
  bool? enableEarlyMatching,
  bool? enableAutoReanchor,
  int? reanchorStallThreshold,
}) {
  return TrackerConfig(
    recitationSpeed: recitationSpeed ?? this.recitationSpeed,
    matchingStrictness: matchingStrictness ?? this.matchingStrictness,
    enableEarlyMatching: enableEarlyMatching ?? this.enableEarlyMatching,
    enableAutoReanchor: enableAutoReanchor ?? this.enableAutoReanchor,
    reanchorStallThreshold:
        reanchorStallThreshold ?? this.reanchorStallThreshold,
  );
}