getYouTubeThumbnail method

String getYouTubeThumbnail({
  1. bool trimWhitespaces = true,
})

Returns YouTube thumbnail for given video id

Implementation

String getYouTubeThumbnail({bool trimWhitespaces = true}) {
  return 'https://img.youtube.com/vi/${this.toYouTubeId(trimWhitespaces: trimWhitespaces)}/maxresdefault.jpg';
}