flutter_solo 0.2.0 copy "flutter_solo: ^0.2.0" to clipboard
flutter_solo: ^0.2.0 copied to clipboard

State management for Flutter: sequential jobs, exclusive state ownership, cooperative cancellation, rebuilds through ValueListenable.

0.2.0 #

The first published release. 0.1.0 never left the tree.

  • SoloListenable<S>: a Solo<S> that is also a ValueListenable<S>, for ValueListenableBuilder, ListenableBuilder, AnimatedBuilder and Listenable.merge. Listeners are called synchronously, in subscription order, on every state change; the stream of Solo still works and arrives a microtask later.
  • Read-only on purpose: value and state are the same object, and there is no setter — the state belongs to the jobs.
  • close() cancels what is running, drops every listener and stops notifying for good; nothing else closes the controller for you.
  • Re-exports package:solo/solo.dart, which re-exports package:async_job/async_job.dart, so flutter_solo is the only dependency an app adds and the only import it writes.
  • Floor: solo: ^0.2.0, whose job kernel is async_job: ^0.2.0 with synchronous job.whenCancelled(callback) registration.

0.1.0 #

Never published.

0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

State management for Flutter: sequential jobs, exclusive state ownership, cooperative cancellation, rebuilds through ValueListenable.

Repository (GitHub)
View/report issues

Topics

#state-management #async #cancellation #concurrency

License

BSD-3-Clause (license)

Dependencies

flutter, solo

More

Packages that depend on flutter_solo