apiServiceProvider top-level property

Provider<ApiService> apiServiceProvider
final

Provides the current ApiService instance for the given token.

Implementation

final apiServiceProvider = Provider<ApiService>((ref) {
  final networkService = ref.watch(networkServiceProvider);

  return MoodleApiService(networkService);
});