web_response_cache 0.0.4 web_response_cache: ^0.0.4 copied to clipboard
A Flutter package offering multiple ways to cache responses obtained from web requests.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add web_response_cache
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
web_response_cache: ^0.0.4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:web_response_cache/cached_web_request.dart';
import 'package:web_response_cache/web_cache_document.dart';
import 'package:web_response_cache/web_cache_type/abstract_web_cache_type.dart';
import 'package:web_response_cache/web_cache_type/time_cache_type.dart';
import 'package:web_response_cache/web_cache_type/util_web_cache_type.dart';