path property

String get path
inherited

The path segment for this route, e.g. 'verify-email', used to configure the GoRoute.path for this route.

GoRoute(
 path: const MyRoute().path,
),

Implementation

String get path {
  if (this is ChildRoute) {
    return _ensureNoLeadingSlash(_path);
  } else {
    return _ensureLeadingSlash(_path);
  }
}