This article explains how Flutter’s new
Router API works. If you follow Flutter’s open design docs, you might have seen these new features referred to as Navigator 2.0 and Router. We’ll explore how these APIs enable more fine-tuned control over the screens in your app and how you can use it to parse routes.
These new APIs are not breaking changes, they simply add a new declarative API. …
If you have ever called
toList() to build a list or map, you might want to check out collection if, collection for, and spreads. Last year, Dart added these features in version 2.3.
In this article, we’ll look at collections, explore these new features, and see some interesting examples. By mastering these features, you can make your code more succinct and easier to read.
First, we need to understand what a collection is. A collection is an object that contains other objects. For example: