Created
May 20, 2020 23:45
-
-
Save Gazer/ca54fec31b42bcd46b5a67335804a7a6 to your computer and use it in GitHub Desktop.
Parse Youtube URL to get YoutubeID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parse Youtube URL to get YoutubeID | |
// | |
void main() { | |
var url = "https://www.youtube.com/watch?v=xr3pKzqrv70"; | |
var uri = Uri.parse(url); | |
var v = uri.queryParameters['v']; | |
print("v=$v"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment