instagram static method
Returns the downloadable instagram link Format: https://instagram.com/p/abc/ (sample)
Implementation
static String instagram(String url) {
if (url.contains("stories")) {
var matches = RegExp(LinkUtils.kInstaStoryPattern).firstMatch(url);
return "${matches!.namedGroup("required")}";
}
var matches = RegExp(LinkUtils.kInstagramPattern).firstMatch(url);
return "${matches!.namedGroup("required")}";
}