single_item_storage 1.0.5 copy "single_item_storage: ^1.0.5" to clipboard
single_item_storage: ^1.0.5 copied to clipboard

A single item storage abstraction with CRUD operations. Use it for abstracting (complex) storage implementations, testing, and quickly swapping implementations.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add single_item_storage

With Flutter:

 $ flutter pub add single_item_storage

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  single_item_storage: ^1.0.5

Alternatively, 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:single_item_storage/cached_storage.dart';
import 'package:single_item_storage/memory_storage.dart';
import 'package:single_item_storage/observed_storage.dart';
import 'package:single_item_storage/storage.dart';
import 'package:single_item_storage/stub_storage.dart';
4
likes
140
pub points
72%
popularity

Publisher

unverified uploader

A single item storage abstraction with CRUD operations. Use it for abstracting (complex) storage implementations, testing, and quickly swapping implementations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

async

More

Packages that depend on single_item_storage