usersProvider top-level property

StateNotifierProvider<UsersProvider, List<User>> usersProvider
final

Provides a list of all users.

Note: Unless the current user has UserCapability.dev or UserCapability.moderator, some information about other users will be redacted:

If you want to query users, use usersRespositoryProvider instead.

Implementation

final usersProvider = StateNotifierProvider<UsersProvider, List<User>>((ref) {
  final userDataSource = ref.watch(userDataSourceProvider);

  return UsersProvider(userDataSource);
});