Skip to content

Commit fa8227c

Browse files
committed
Update readme.
1 parent 87703eb commit fa8227c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![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)
44
![PR](https://img.shields.io/badge/PRs-welcome-blue)
55

66
# lifecycle
@@ -332,16 +332,16 @@ Widget build(BuildContext context) {
332332

333333
### Other APIs
334334

335-
* Find a route according to a specific name.
335+
* Iterates routes.
336336

337337
```
338-
Route route = defaultLifecycleObserver.findRoute('route_name');
338+
defaultLifecycleObserver.iterateRoutes(bool Function(route) callback);
339339
```
340340
341-
* Remove a route according to a specific name.
341+
* Remove a route.
342342
343343
```
344-
defaultLifecycleObserver.removeNamed('route_name');
344+
defaultLifecycleObserver.removeRoute<T>(Route route, [T? result]);
345345
```
346346
347347
* Dispose a LifecycleObserver when it will never be used.

0 commit comments

Comments
 (0)