isYoutubeUrLValid function

bool isYoutubeUrLValid(
  1. String url
)

Implementation

bool isYoutubeUrLValid(String url) => RegExp(
      r'^((https?):\/\/)((www\.)?(youtube)\.(com))\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)',
    ).hasMatch(url);