copyWith method

HumanName copyWith({
  1. String? family,
  2. String? use,
  3. FixedList<String>? given,
  4. FixedList<String>? prefix,
})

Makes a copy of this HumanName but with the given fields updated.

Implementation

HumanName copyWith({
  String? family,
  String? use,
  FixedList<String>? given,
  FixedList<String>? prefix,
}) =>
    HumanName(
      family: family ?? this.family,
      use: use ?? this.use,
      given: given ?? this.given,
      prefix: prefix ?? this.prefix,
    );