copyWith method

Name copyWith({
  1. String? givenName,
  2. String? surname,
})

Implementation

Name copyWith({
  String? givenName,
  String? surname,
}) {
  return Name(
    givenName: givenName ?? this.givenName,
    surname: surname ?? this.surname,
  );
}