findPotentialPhoneNumbers static method

Iterable<PhoneNumber> findPotentialPhoneNumbers(
  1. String text
)

Implementation

static Iterable<PhoneNumber> findPotentialPhoneNumbers(String text) =>
    TextParser.findPotentialPhoneNumbers(text).map((match) {
      try {
        return PhoneNumber.parse(match.group(0)!);
      } catch (e) {
        return null;
      }
    }).whereType<PhoneNumber>();