path property

String get path

Path of the route.

By default, this uses a / prefix and name to a path string, but you can override this if you want a custom path.

Example:

@override
String get path => '/product/:id';

Implementation

String get path => "/${name}";