isYoutubeVideoUrl method

bool isYoutubeVideoUrl({
  1. String? id,
})

Check string is youtube video url

Implementation

bool isYoutubeVideoUrl({String? id}) {
  var o = youtubeVideoUrl;
  if (o == null) return false;
  return (id == null || o.id == id);
}