You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/basics-in-depth/viewmodels.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -517,7 +517,7 @@ Where the `ViewModel` is just this.
517
517
class HomeViewModel extends IndexTrackingViewModel {}
518
518
```
519
519
520
-
Another function it has is `setCurrentWebPageIndex` which sets the current index using current Route on Web Platform. Allows to get the index from url during a browser refresh which means the app starts from scracth. Can be used as follows:
520
+
Another function it has is `setCurrentWebPageIndex` which sets the current index using current Route on Web Platform. This function allows you to get the index from the URL during a browser refresh. It can be used as follows:
521
521
522
522
```dart
523
523
class BottomNavExampleViewModel extends IndexTrackingViewModel {
@@ -533,4 +533,4 @@ class BottomNavExampleViewModel extends IndexTrackingViewModel {
533
533
534
534
## We're ready for the Web 🚀
535
535
536
-
Master Flutter on the web with the official [Flutter Web Course](https://masterflutterweb.carrd.co/)
536
+
Master Flutter on the web with the official [Flutter Web Course](https://masterflutterweb.carrd.co/)
0 commit comments