copyWithWrapped method

NameMatchScore copyWithWrapped({
  1. Wrapped<int?>? score,
  2. Wrapped<bool?>? isFirstNameOrLastNameMatch,
  3. Wrapped<bool?>? isNicknameMatch,
  4. Wrapped<bool?>? isBusinessNameDetected,
})

Implementation

NameMatchScore copyWithWrapped(
    {Wrapped<int?>? score,
    Wrapped<bool?>? isFirstNameOrLastNameMatch,
    Wrapped<bool?>? isNicknameMatch,
    Wrapped<bool?>? isBusinessNameDetected}) {
  return NameMatchScore(
      score: (score != null ? score.value : this.score),
      isFirstNameOrLastNameMatch: (isFirstNameOrLastNameMatch != null
          ? isFirstNameOrLastNameMatch.value
          : this.isFirstNameOrLastNameMatch),
      isNicknameMatch: (isNicknameMatch != null
          ? isNicknameMatch.value
          : this.isNicknameMatch),
      isBusinessNameDetected: (isBusinessNameDetected != null
          ? isBusinessNameDetected.value
          : this.isBusinessNameDetected));
}