isValid method

bool isValid({
  1. PhoneNumberType? type,
})

validates a phone number by first checking its length then pattern matching

Implementation

bool isValid({PhoneNumberType? type}) =>
    Validator.validateWithPattern(isoCode, nsn, type);