idempotency 0.1.0
idempotency: ^0.1.0 copied to clipboard
Client-side idempotency keys for Dart and Flutter: persist a key before the request fires, replay stored responses on retries, detect request-in-progress conflicts.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add idempotencyWith Flutter:
$ flutter pub add idempotencyThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
idempotency: ^0.1.0Alternatively, 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:idempotency/idempotency.dart';