jinyus / dart_beacon

A reactive primitive (signals) and state management library for dart and flutter
https://pub.dev/packages/state_beacon
28 stars 2 forks source link

Add disposeTogether parameter for wrapping #36

Closed jinyus closed 7 months ago

jinyus commented 7 months ago

This pull request adds a new disposeTogether parameter to the wrap method in the BeaconConsumer class. When set to true, the wrapper beacon will be disposed when the target beacon is disposed, and vice versa. This allows for more convenient and consistent disposal of wrapped beacons.

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6fc381d) 100.00% compared to head (e6f8374) 100.00%. Report is 7 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #36 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 809 823 +14 ========================================= + Hits 809 823 +14 ``` | [Flag](https://app.codecov.io/gh/jinyus/dart_beacon/pull/36/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jinyus) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/jinyus/dart_beacon/pull/36/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jinyus) | `100.00% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jinyus#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.