cached_builder 1.0.1
cached_builder: ^1.0.1 copied to clipboard
A smart FutureBuilder replacement with built-in caching, retry, and stale-while-revalidate strategies. Integrated with connectivity_plus_wrapper for smart network awareness.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cached_builder
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cached_builder: ^1.0.1
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:cached_builder/cached_builder.dart';