youtubeUrl constant
Pattern
const youtubeUrl
YouTube Video URL Regex Examples: https://youtu.be/dQw4w9WgXcQ, https://www.youtube.com/watch?v=dQw4w9WgXcQ
Implementation
static const Pattern youtubeUrl =
r'^(https?\:\/\/)?(www\.youtube\.com|youtu\.?be)\/.+$';