dispose_scope 2.1.0 copy "dispose_scope: ^2.1.0" to clipboard
dispose_scope: ^2.1.0 copied to clipboard

Simple package making it easy to dispose (aka cancel, aka close) your objects.

2.1.0 #

  • Allow for synchronous Dispose through FutureOr (#34)

2.0.1 #

  • Add annotations to Disposable's methods (#32)

2.0.0 #

  • Add safety checks (#25)
    • Throw StateError if DisposeScope.dispose() is called more than once
    • Add DisposeScope.run() which will run a callback only if dispose scope is not disposed
  • Rename extensions from disposed() to disposedBy (#24)
  • Add disposedBy() extension for Process from dart:io (#19)

1.0.0 #

  • Initial release
12
likes
160
pub points
76%
popularity

Publisher

verified publisherodrowaz.dev

Simple package making it easy to dispose (aka cancel, aka close) your objects.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on dispose_scope