copyWith method

NameMatchScore copyWith({
  1. int? score,
  2. bool? isFirstNameOrLastNameMatch,
  3. bool? isNicknameMatch,
  4. bool? isBusinessNameDetected,
})

Implementation

NameMatchScore copyWith(
    {int? score,
    bool? isFirstNameOrLastNameMatch,
    bool? isNicknameMatch,
    bool? isBusinessNameDetected}) {
  return NameMatchScore(
      score: score ?? this.score,
      isFirstNameOrLastNameMatch:
          isFirstNameOrLastNameMatch ?? this.isFirstNameOrLastNameMatch,
      isNicknameMatch: isNicknameMatch ?? this.isNicknameMatch,
      isBusinessNameDetected:
          isBusinessNameDetected ?? this.isBusinessNameDetected);
}