phone method

ValidationBuilder phone([
  1. String? message
])

Value must be a well formatted phone number

Implementation

ValidationBuilder phone([String? message]) =>
    add((v) => !_anyLetter.hasMatch(v!) &&
            _options.phoneRegExp.hasMatch(v.replaceAll(_nonDigitsExp, ''))
        ? null
        : message ?? _locale.phoneNumber(v));