copyWith method
Create a copy of this state with updated fields
Implementation
UsersLoaded copyWith({
List<User>? users,
bool? hasMore,
Set<String>? selectedUsers,
bool? isLoadingMore,
String? searchKeyword,
}) {
return UsersLoaded(
users: users ?? this.users,
hasMore: hasMore ?? this.hasMore,
selectedUsers: selectedUsers ?? this.selectedUsers,
isLoadingMore: isLoadingMore ?? this.isLoadingMore,
searchKeyword: searchKeyword ?? this.searchKeyword,
);
}