serviceContext function

  1. @Riverpod.new(keepAlive: true)
ServiceContext serviceContext(
  1. Ref ref
)

Bundles Dio + ApiEndpoints for use in all AppService subclasses.

Implementation

@Riverpod(keepAlive: true)
ServiceContext serviceContext(Ref ref) => ServiceContext(
  dio: ref.watch(dioProvider),
  endpoints: ref.watch(appConfigProvider).endpoints,
);