File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Pub Version] ( https://img.shields.io/pub/v/lifecycle )] ( https://pub.dev/packages/lifecycle )
2
- [ ![ pub points] ( https://badges.bar/lifecycle/ pub%20points )] ( https://pub.dev/packages/lifecycle/score )
3
- [ ![ likes] ( https://badges.bar/lifecycle /likes )] ( https://pub.dev/packages/lifecycle/score )
2
+ [ ![ pub points] ( https://img.shields.io/ pub/points/lifecycle )] ( https://pub.dev/packages/lifecycle )
3
+ [ ![ likes] ( https://img.shields.io/pub /likes/lifecycle )] ( https://pub.dev/packages/lifecycle )
4
4
![ PR] ( https://img.shields.io/badge/PRs-welcome-blue )
5
5
6
6
# lifecycle
@@ -332,16 +332,16 @@ Widget build(BuildContext context) {
332
332
333
333
# ## Other APIs
334
334
335
- * Find a route according to a specific name .
335
+ * Iterates routes .
336
336
337
337
```
338
- Route route = defaultLifecycleObserver.findRoute('route_name' );
338
+ defaultLifecycleObserver.iterateRoutes(bool Function(route) callback );
339
339
```
340
340
341
- * Remove a route according to a specific name .
341
+ * Remove a route.
342
342
343
343
```
344
- defaultLifecycleObserver.removeNamed('route_name' );
344
+ defaultLifecycleObserver.removeRoute< T >(Route route, [ T? result ] );
345
345
```
346
346
347
347
* Dispose a LifecycleObserver when it will never be used.
You can’t perform that action at this time.
0 commit comments