phone static method
Check if the value is a valid phone number.
Implementation
static String? phone(String? value, {String? message}) =>
value == null || value.isEmpty || (validations.isNumeric(value) && value.length == 10) ? null : message ?? 'Please enter a valid phone number';