I have to fetch some url link, but the link is shorten like "shorturl.at/cpqCE". I want to get the original link url in flutter. How can I do this? in Phph I found this :
function expandShortUrl($url) {
$headers = get_headers($url, 1);
return $headers['Location'];
}
// will echo https://deluxeblogtips.com
echo expandShortUrl($url);
Thanks to @RandalSchwartz I solved it by using :