isValidNumber method

bool isValidNumber(
  1. String normalizedNumber
)

Checks whether or not given normalizedNumber is valid phone number in this country.

Implementation

bool isValidNumber(String normalizedNumber) =>
    matches(normalizedNumber) &&
    length.test(normalizedNumber.length - _prefixStr.length);