currentUserOrgRole function

  1. @riverpod
Future<String?> currentUserOrgRole(
  1. Ref<Object?> ref,
  2. String orgId
)

Implementation

@riverpod
Future<String?> currentUserOrgRole(Ref ref, String orgId) async {
  final ds = ref.watch(orgDatasourceProvider);
  return ds.getMyRole(orgId);
}