A Dart Simple Queue System based on ChangeNotifier.

Getting started

Either run:

fluter pub add flutter_sqs

or add to pubspec.yaml:

flutter_sqs: ^1.0.0

Usage

import 'package:flutter_sqs/flutter_sqs.dart';

final Queue queue = SingleListenerQueue<Task>(); // single listener
// or
final Queue queue = BroadcastQueue<Task>(); // broadcast queue

// add listeners to the queue

queue.addListener((Task event) {
  // do something with the event
});


final firstTask = Task();

// add values to the queue
queue.add(firstTask);

final secondTask = Task();

queue.add(secondTask);

Additional information

Feel free to file any issues, and any help improving and maintaining is welcome.

Hope it's useful :)

Libraries

flutter_sqs