static String getUsername(String url) { var matches = RegExp(kInstaStoryPattern).firstMatch(url); return "${matches!.namedGroup("username")}"; }