The MaterialApp. router() is another convenience. “Creates a [MaterialApp] that uses the [Router] instead of a [Navigator] .” The router constructor provides you a way to create a MaterialApp and configure and return a custom Navigator.
The MaterialApp. router() is another convenience. “Creates a [MaterialApp] that uses the [Router] instead of a [Navigator] .” The router constructor provides you a way to create a MaterialApp and configure and return a custom Navigator.