HttpProvider constructor

HttpProvider(
  1. String apiKey,
  2. String path
)

Make http requests, and cache them in hiveBox (hiveHttpCache)].

Require hiveBox(hiveHttpCache) to be awaited before start of app!

Read hive on init, state is a List from json http.Response , save state to Hive. {@category Providers}

Copied from Http.

Implementation

HttpProvider(
  this.apiKey,
  this.path,
) : super.internal(
        () => Http()
          ..apiKey = apiKey
          ..path = path,
        from: httpProvider,
        name: r'httpProvider',
        debugGetCreateSourceHash:
            const bool.fromEnvironment('dart.vm.product') ? null : _$httpHash,
        dependencies: HttpFamily._dependencies,
        allTransitiveDependencies: HttpFamily._allTransitiveDependencies,
      );