path property
The current used route.
For example if our route map is:
route: {
'/': (RouteData data) => Home(),
'/page1/:id': (RouteData data) => Page1(),
}
- if we navigate to
'/'
, the path is'/'
and the location is'/'
. - if we navig
ate to '/page1/1', the path is '/page1/:id' and the location is
'/page1/1'.
Implementation
final String path;