flutter_persistent_queue 0.1.2 copy "flutter_persistent_queue: ^0.1.2" to clipboard
flutter_persistent_queue: ^0.1.2 copied to clipboard

outdated

Simple file-based non-volatile queue for flutter. Ideal for in-device sequential buffers that persist between app runs.

persistent_queue #

Simple file-based non-volatile queue library for flutter.

Installation #

Add dependency to pubspec.yaml:

dependencies:
  ...
  flutter_persistent_queue: ^0.1.2

Run in your terminal:

flutter packages get

How it works #

Each JSON-encodable item to be queued goes to its own non-volatile file on the flutter-compatible devices. This particular design choice limits potential use cases requiring very long queues but otherwise provides high performance with very reduced resource usage, as it doesn't require serializing and deserializing contiguous or chunked dart:collections to the filesystem.

It's built on top of the also minimalistic Localstorage library. Concurrency-safety and sequential correctness is provided by the fantastic and easy to use Synchronized reentrant locks.

License #

MIT

10
likes
0
pub points
16%
popularity

Publisher

unverified uploader

Simple file-based non-volatile queue for flutter. Ideal for in-device sequential buffers that persist between app runs.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, localstorage, meta, synchronized

More

Packages that depend on flutter_persistent_queue