an_lifecycle_cancellable 2.2.0
an_lifecycle_cancellable: ^2.2.0 copied to clipboard
After merging Lifecycle and Cancellable, the toolkit provided in flutter
2.2.0 #
- The repeatOnLifecycle and collectOnLifecycle functions are extended to support error handling for the execution block via a new parameter called ignoreBlockError. By default, ignoreBlockError is set to false, meaning any errors occurring in the block will be reported using FlutterError.reportError.
- In the extension functions withLifecycleEffect and withLifecycleAndDataEffect, if an exception occurs in the execution units, FlutterError.reportError will be called.
2.1.0 #
- Refine the timing checks for the withLifecycle launch methods.
- BuildContext.withLifecycleEffectData will be renamed to BuildContext.withLifecycleAndDataEffect.
- ILifecycle adds a new tickerProvider extension.
- BuildContext adds new extensions: withLifecycleExtData and withLifecycleAndExtDataEffect.
2.0.2 #
- LifecycleExtData adds a check to verify if it has been destroyed.
2.0.1 #
- Fix the bug in Stream.repeatLatest.
2.0.0 #
- Stream adds extension onData, repeatLatest.
- BuildContext adds extensions withLifecycleEffect, withLifecycleEffectData.
Breaking Changes #
- LifecycleExtData is subdivided into LiveExtData and LifecycleRegistryExtData.
- LifecycleExtData will automatically generate a Key based on the Type, and all parameters in the methods will be changed to named parameters.
1.1.0 #
- Upgrading Dependencies.
- lifecycleExtData renamed to extData.
- Added extDataForRegistry.
1.0.2 #
- The newly added findLifecycleOwner can be used to search upward for the specified LifecycleOwner.
1.0.1 #
- After upgrading lifecycle to 3.0, some assertions are abnormal
1.0.0 #
- Lifecycle upgraded to 3.0.0
0.0.7 #
- Continue to expand the launch series
- Fix reference exception caused by makeLiveCancellable
0.0.6 #
- Continue to expand the launch series
- fix withLifecycleEffect bugs
- fix lifecycleExtData bugs
0.0.5 #
- Postpone the execution of resumed of withLifecycleEffect (wait for the next event loop)
- fix withLifecycleEffect assert judgment error
0.0.4+1 #
- Fix lifecycleExtData automatic cleanup exception
0.0.4 #
- Migration of Listenable extensions.
- Adding a new launch to the lifecycle (executed only once).
- Added extension lifecycleExtData, which can store data based on the lifecycle and automatically clean it up upon destroy.
0.0.3 #
- fix bug whenMoreThanState
0.0.2 #
- export dialog/dialog_ext.dart
0.0.1 #
- The first version migration is completed