usersProvider top-level property
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:
- User.themeName
- User.language
- User.capabilitiesBitMask
- User.capabilities
- User.locale
- User.planId
- User.colorBlindness
- User.colorBlindnessString
- User.displayTaskCount
- User.displayTaskCountInt
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);
});