youtube_validator 1.0.2 copy "youtube_validator: ^1.0.2" to clipboard
youtube_validator: ^1.0.2 copied to clipboard

This is a small package to validate the youtube video link and playlist link and we can also check the availability of video or playlist.

example/example.dart

import 'package:youtube_video_validator/youtube_validator.dart';

void main() {
  print(
      'isValid: ${VideoURLValidator.validateYouTubeVideoURL(url: 'https://youtube.com/watch?v=23433')}');
  print(
      'Playlist/Video: ${VideoURLValidator.checkURLisVideoOrPlaylistYoutube(url: 'https://youtube.com/watch?v=23433')}');
  print(
      'Available: ${VideoURLValidator.checkVideoIsAvailOnYoutube(url: 'https://youtube.com/watch?v=23433')}');
}
4
likes
150
points
23
downloads
screenshot

Publisher

verified publisher24-converter.com

Weekly Downloads

This is a small package to validate the youtube video link and playlist link and we can also check the availability of video or playlist.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on youtube_validator