IsValidPhoneRule

This validation rule checks if the phone number is possible with PhoneNumberBackend.current. Without a backend it only checks that the number has a dial code.

This rule doesn't return any error if the value is null or the phone number is blank

Return

null if the phone number is valid, ValidationError.PhoneIsValid otherwise

Functions

Link copied to clipboard
open override fun isValid(value: PhoneData?): ValidationError?