copyWith method

ContactLabels<T> copyWith({
  1. String? type,
  2. String? description,
  3. String? emailAddress,
  4. String? phoneNumber,
  5. List<ContactTypeSelection<T>>? contactTypes,
})

Implementation

ContactLabels<T> copyWith({
  String? type,
  String? description,
  String? emailAddress,
  String? phoneNumber,
  List<ContactTypeSelection<T>>? contactTypes,
}) {
  return ContactLabels<T>(
    type: type ?? this.type,
    description: description ?? this.description,
    emailAddress: emailAddress ?? this.emailAddress,
    phoneNumber: phoneNumber ?? this.phoneNumber,
    contactTypes: contactTypes ?? this.contactTypes,
  );
}