getVideoLink static method

String? getVideoLink(
  1. String? content
)

Implementation

static String? getVideoLink(String? content) {
  if (content == null) {
    return '';
  }

  final youtubeLink = _getYoutubeLink(content);

  if (youtubeLink != null) {
    return youtubeLink;
  }
  final facebookLink = _getFacebookLink(content);
  if (facebookLink != null) {
    return facebookLink;
  }
  final vimeoLink = _getVimeoLink(content);
  if (vimeoLink != null) return vimeoLink;

  final wordpressLink = _getWordPressVideoLink(content);
  return wordpressLink;
}