fxService function

  1. @Riverpod.new(keepAlive: true)
FxServiceContext fxService(
  1. Ref ref
)

Bundles Dio + ApiEndpoints for use in all AppService subclasses.

Implementation

@Riverpod(keepAlive: true)
FxServiceContext fxService(Ref ref) => FxServiceContext(
  dio: ref.watch(fxDioProvider),
  endpoints: ref.watch(fxConfigProvider).endpoints,
);