registerScopedUserScopes function
void
registerScopedUserScopes(
- ScopeRegistry registry
Implementation
void registerScopedUserScopes(ScopeRegistry registry) {
registry.addGlobalScope<$ScopedUser>(
'activeOnly',
(query) => query.activeOnly(),
);
registry.addLocalScope<$ScopedUser>('emailDomain', (query, args) {
return query.emailDomain(args[0] as String);
});
registry.addLocalScope<$ScopedUser>('named', (query, args) {
return query.named(name: args[0] as String);
});
}