copyWith method

BusinessRecipients copyWith({
  1. List<int>? chatIds,
  2. bool? selectExistingChats,
  3. bool? selectNewChats,
  4. bool? selectContacts,
  5. bool? selectNonContacts,
  6. bool? excludeSelected,
})

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

Implementation

BusinessRecipients copyWith({
  List<int>? chatIds,
  bool? selectExistingChats,
  bool? selectNewChats,
  bool? selectContacts,
  bool? selectNonContacts,
  bool? excludeSelected,
}) =>
    BusinessRecipients(
      chatIds: chatIds ?? this.chatIds,
      selectExistingChats: selectExistingChats ?? this.selectExistingChats,
      selectNewChats: selectNewChats ?? this.selectNewChats,
      selectContacts: selectContacts ?? this.selectContacts,
      selectNonContacts: selectNonContacts ?? this.selectNonContacts,
      excludeSelected: excludeSelected ?? this.excludeSelected,
    );