offline_first_cache 0.0.4
offline_first_cache: ^0.0.4 copied to clipboard
An offline-first HTTP client for Flutter/Dart with request queuing, GET caching (stale-while-revalidate, tag-based invalidation), and a built-in Queue Inspector UI.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add offline_first_cacheWith Flutter:
$ flutter pub add offline_first_cacheThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
offline_first_cache: ^0.0.4Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:offline_first_cache/offline_first_cache.dart';