copyWith method

SignalPersonName copyWith({
  1. String? prefix,
  2. String? givenName,
  3. String? middleName,
  4. String? familyName,
  5. String? suffix,
})

Implementation

SignalPersonName copyWith(
    {String? prefix,
    String? givenName,
    String? middleName,
    String? familyName,
    String? suffix}) {
  return SignalPersonName(
      prefix: prefix ?? this.prefix,
      givenName: givenName ?? this.givenName,
      middleName: middleName ?? this.middleName,
      familyName: familyName ?? this.familyName,
      suffix: suffix ?? this.suffix);
}