copyWith method

AddChatMembers copyWith({
  1. int? chatId,
  2. List<int>? userIds,
})

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

Implementation

AddChatMembers copyWith({int? chatId, List<int>? userIds}) => AddChatMembers(
  chatId: chatId ?? this.chatId,
  userIds: userIds ?? this.userIds,
);