resolveFullRoute method

String resolveFullRoute(
  1. BuildContext context
)

Implementation

String resolveFullRoute(BuildContext context) {
  if (value.startsWith('/')) return value; // Absolute path or wildcard
  String localPath = value;
  if (localPath == '*') localPath = localPath.substring(0, localPath.length - 1);
  String parentPath = '';
  RoutedInfo? info = RoutedInfo.of(context);
  if (info != null) parentPath = info.matchingRoute;
  return '$parentPath/$localPath';
}