extractUrls function

List<String> extractUrls(
  1. String text
)

Extract all URLs from text.

Implementation

List<String> extractUrls(String text) {
  return _urlRegex.allMatches(text).map((m) => m.group(0)!).toList();
}