extractPath static method
- String url
Extract relative path from a full POD URL.
url - Full POD URL.
Returns path relative to POD root.
Implementation
static String? extractPath(String url) {
try {
final uri = Uri.parse(url);
return uri.path.startsWith('/') ? uri.path.substring(1) : uri.path;
} catch (_) {
return null;
}
}