Showing
3 changed files
with
18 additions
and
2 deletions
| 1 | -## [3.25.1] - Big update | 1 | +## [3.25.2] |
| 2 | +- Improved Workers system to accept a list of works | ||
| 3 | + | ||
| 4 | +## [3.25.1] | ||
| 2 | - Improved the log system to display the tag used in the controller that was created. | 5 | - Improved the log system to display the tag used in the controller that was created. |
| 3 | 6 | ||
| 4 | ## [3.25.0] - Big update | 7 | ## [3.25.0] - Big update |
| @@ -13,6 +13,19 @@ bool _conditional(dynamic condition) { | @@ -13,6 +13,19 @@ bool _conditional(dynamic condition) { | ||
| 13 | 13 | ||
| 14 | typedef WorkerCallback<T> = Function(T callback); | 14 | typedef WorkerCallback<T> = Function(T callback); |
| 15 | 15 | ||
| 16 | +class Workers { | ||
| 17 | + Workers(this.workers); | ||
| 18 | + final List<Worker> workers; | ||
| 19 | + | ||
| 20 | + void dispose() { | ||
| 21 | + for (final worker in workers) { | ||
| 22 | + if (!worker._disposed) { | ||
| 23 | + worker.dispose(); | ||
| 24 | + } | ||
| 25 | + } | ||
| 26 | + } | ||
| 27 | +} | ||
| 28 | + | ||
| 16 | /// | 29 | /// |
| 17 | /// Called every time [listener] changes. As long as the [condition] | 30 | /// Called every time [listener] changes. As long as the [condition] |
| 18 | /// returns true. | 31 | /// returns true. |
| 1 | name: get | 1 | name: get |
| 2 | description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. | 2 | description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX. |
| 3 | -version: 3.25.1 | 3 | +version: 3.25.2 |
| 4 | homepage: https://github.com/jonataslaw/getx | 4 | homepage: https://github.com/jonataslaw/getx |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
-
Please register or login to post a comment