entitlementDatasource function

  1. @Riverpod(keepAlive: true)
EntitlementDatasource entitlementDatasource(
  1. Ref<Object?> ref
)

Singleton datasource wrapping the Supabase client.

Implementation

@Riverpod(keepAlive: true)
EntitlementDatasource entitlementDatasource(Ref ref) {
  return EntitlementDatasource(Supabase.instance.client);
}