Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenenyu committed Apr 23, 2023
1 parent 87703eb commit fa8227c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Pub Version](https://img.shields.io/pub/v/lifecycle)](https://pub.dev/packages/lifecycle)
[![pub points](https://badges.bar/lifecycle/pub%20points)](https://pub.dev/packages/lifecycle/score)
[![likes](https://badges.bar/lifecycle/likes)](https://pub.dev/packages/lifecycle/score)
[![pub points](https://img.shields.io/pub/points/lifecycle)](https://pub.dev/packages/lifecycle)
[![likes](https://img.shields.io/pub/likes/lifecycle)](https://pub.dev/packages/lifecycle)
![PR](https://img.shields.io/badge/PRs-welcome-blue)

# lifecycle
Expand Down Expand Up @@ -332,16 +332,16 @@ Widget build(BuildContext context) {

### Other APIs

* Find a route according to a specific name.
* Iterates routes.

```
Route route = defaultLifecycleObserver.findRoute('route_name');
defaultLifecycleObserver.iterateRoutes(bool Function(route) callback);
```
* Remove a route according to a specific name.
* Remove a route.
```
defaultLifecycleObserver.removeNamed('route_name');
defaultLifecycleObserver.removeRoute<T>(Route route, [T? result]);
```
* Dispose a LifecycleObserver when it will never be used.
Expand Down

0 comments on commit fa8227c

Please sign in to comment.