match static method

List<UrlMatch> match(
  1. String text
)

The web links and emails of text, and on iOS and Android the phones the platform's detector reads that overlap none of them, sorted by UrlMatch.start and non-overlapping, with UTF-16 offsets.

Implementation

static List<UrlMatch> match(String text) {
  final links = detectLinks(text);
  final read = _readPhones;
  return read == null ? links : withPhones(text, links, read);
}