adminEligibleOrgs function

  1. @riverpod
Future<List<OrganizationModel>> adminEligibleOrgs(
  1. Ref<Object?> ref
)

Orgs where the user is owner/admin — used by the admin-onboarding picker and to auto-select when the user is admin of exactly one org.

Implementation

@riverpod
Future<List<OrganizationModel>> adminEligibleOrgs(Ref ref) async {
  final ds = ref.watch(orgDatasourceProvider);
  return ds.getAdminOrgs();
}