copyWith method

ChangeImportedContacts copyWith({
  1. List<ImportedContact>? contacts,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ChangeImportedContacts copyWith({List<ImportedContact>? contacts}) =>
    ChangeImportedContacts(contacts: contacts ?? this.contacts);