generateRoute function
[Route] generateRoute(
- [[RouteSettings] settings]
)
The MaterialApp provides us with a property called generateRoute where.
we can pass in a Function that returns a Route and takes in RouteSettings Thus for this purpose, we create a function named generateRoute
params:
settings
: RouteSetting have been passed
returns:
Route<dynamic>
: Return a Route
Implementation
Route<dynamic> generateRoute(RouteSettings settings)