networkServiceProvider top-level property

Provider<NetworkService> networkServiceProvider
final

Provides the current NetworkService instance.

See NetworkService for more information.

Implementation

final networkServiceProvider = Provider<NetworkService>((ref) {
  final dio = Dio();

  return DioNetworkService(dio);
});