raii 0.3.5 copy "raii: ^0.3.5" to clipboard
raii: ^0.3.5 copied to clipboard

Resource Acquisition Is Initialization (RAII) pattern for Dart, providing automated lifecycle management of resources.

0.3.5 #

  • Don't throw AlreadyInitializedException in release build;
  • Don't throw AlreadyDisposedException in release build;
  • Don't throw NotInitializedException in release build;
  • Don't throw ManagerDisposedException in release build.

0.3.4 #

  • Rename take method to takeLifecycle.

0.3.3 #

  • Add take method to the RaiiLifecycleAware.

0.3.2 #

  • Automatic unregister from holder when RaiiManagerMixin get disposed.

0.3.1 #

  • Update README.md.

0.3.0 #

  • Add addStatusListenerWithLifecycle to Animation<T>;
  • Add RaiiTimer - The wrapper class that manages the timer's lifecycle;
  • Add unregisterLifecycle method to the RaiiLifecycleAware;
  • Add withLifecycle extension to the Timer which return RaiiTimer;
  • Init alwaysAliveRaiiManager when created;
  • Typo addObserverWithLifeycle -> addObserverWithLifecycle;
  • Remove material and cupertino packages, now everything in the flutter;
  • Automatic unregister lifecycles when disposed;
  • Support all types that extends ChangeNotifier;
  • Add RaiiLifecycleHolderTracker and RaiiLifecycleHolderTrackerMixin for lifecycle objects that track their parent holder;
  • RaiiLifecycleMixin and RaiiManagerMixin now implements RaiiLifecycleHolderTracker.

0.2.0 #

  • Add RaiiLifecycleAwareWithContext;
  • RaiiStateMixin implements now RaiiLifecycleAwareWithContext.

0.1.0 #

  • Initial release.
12
likes
160
points
204
downloads

Documentation

API reference

Publisher

verified publisherandrei.kabylin.dev

Weekly Downloads

Resource Acquisition Is Initialization (RAII) pattern for Dart, providing automated lifecycle management of resources.

Repository (GitHub)
View/report issues

Topics

#raii #lifecycle #resource-management #state-management

License

MIT (license)

Dependencies

flutter

More

Packages that depend on raii