getURLMatches static method
Get all the URL from a text message
Implementation
static List<String> getURLMatches(String textMessage) {
final matches = urlReg.allMatches(textMessage).toList();
List<String> urlMatches = [];
for (Match m in matches) {
String match = m.group(0) ?? "";
urlMatches.add(match);
}
return urlMatches;
}