Skip to content

social links

Mohamed Dawood edited this page Nov 9, 2021 · 1 revision

Social media

you can check is any string matches social link

like this

   var url="http://fb.com/xxx";
   print(url.isFacebookUrl())

you can also get the parsed data

   var url="http://fb.com/xxx";
   var facebookUrl=url.facebookUrl;
   print(facebookUrl.name); //prints xxx

here are the full list

  • Parse string to angle company url
.   AngelCompanyUrl? get angelCompany; 
  • Parse string to angle job url
.   AngelJobUrl? get angelJob; 
  • check string is angel comapny valid url
.   bool isAngelCompany(); 
  • check string is angel job valid url
.   bool isAngelJob(); 
  • Parse string to crunchbase organization url
.   CrunchbaseOrganizationUrl? get crunchbaseOrganization; 
  • Parse string to crunchbase person url
.   CrunchbasePersonUrl? get crunchbasePersonUrl; 
  • check string is runchbase organization url
.   bool isCrunchbaseOrganization(); 
  • check string is crunchbase person url
.   bool isCrunchbasePerson(); 
  • Parse string to facebook url
.   FacebookUrl? get facebookUrl; 
  • Check string is facebook url
.   bool isFacebookUrl(); 
  • Parse string to github url
.   GitHubUrl? get gitHubUrl; 
  • Check string is github url
.   bool isGitHubUrl(); 
  • Parse string to google plus url
.   GooglePlusUrl? get googlePlusUrl; 
  • Check string is google plus url
.   bool isGooglePlusUrl(); 
  • Parse string to hacker news url
.   HackerNewsUrl? get hackerNewsUrl; 
  • Check string is hacker news user url
.   bool isHackerNewsUserUrl(); 
  • Check string is hacker news url
.   bool isHackerNewsItemUrl(); 
  • Parse string to instagram url
.   InstagramUrl? get instagramUrl; 
  • Check string is instagram url
.   bool isInstagramUrl(); 
  • Parse string to linkedin url
.   LinkedInUrl? get linkedInUrl; 
  • Check string is linkedin profile url
.   bool isLinkedInProfile(); 
  • Check string is linkedin companey url
.   bool isLinkedInCompaney(); 
  • Check string is linkedin post url
.   bool isLinkedInPost(); 
  • Parse string to reddit url
.   RedditUrl? get redditUrl; 
  • Check string is reddit url
.   bool isRedditUrl(); 
  • Parse string to snapchat url
.   SnapchatUrl? get snapchatUrl; 
  • Check string is snapchat url
.   bool isSnapchatUrl(); 
  • Parse string to stack exchange url
.   StackexchangeUrl? get stackexchangeUrl; 
  • Check string is stack exchange url
.   bool isStackexchangeUrl(); 
  • Parse string to stackoverflow question url
.   StackoverflowQuestionUrl? get stackoverflowQuestionUrl; 
  • Check string is stackoverflow question url
.   bool isStackoverflowQuestionUrl(); 
  • Parse string to stackoverflow user url
.   StackoverflowUserUrl? get stackoverflowUserUrl; 
  • Check string is stackoverflow user url
.   bool isStackoverflowUserUrl(); 
  • Parse string to telegram profile url
.   TelegramProfileUrl? get telegramProfileUrl; 
  • Check string is telegram profile url
.   bool isTelegramProfileUrl(); 
  • Parse string to medium post url
.   MediumPostUrl? get mediumPostUrl; 
  • Check string is medium post url
.   bool isMediumPostUrl(); 
  • Parse string to medium user url
.   MediumUserUrl? get mediumUserUrl; 
  • Check string is medium user url
.   bool isMediumUserUrl(); 
  • Parse string to twitter status url
.   TwitterStatusUrl? get twitterStatusUrl; 
  • Check string is twitter status url
.   bool isTwitterStatusUrl(); 
  • Parse string to twitter user url
.   TwitterUserUrl? get twitterUserUrl; 
  • Check string is twitter user url
.   bool isTwitterUserUrl(); 
  • Parse string to youtube channel url
.   YoutubeChannelUrl? get youtubeChannelUrl; 
  • Check string is youtube channelr url
.   bool isYoutubeChannelUrl(); 
  • Parse string to youtube video url
.   YoutubeVideoUrl? get youtubeVideoUrl; 
  • Check string is youtube video url
.   bool isYoutubeVideoUrl(); 
  • Parse string to youtube user url
.   YoutubeUserUrl? get youtubeUserUrl; 
  • Check string is youtube user url
.   bool isYoutubeUserUrl();