phone static method

String? Function(String?) phone({
  1. String errorMessage = 'Please enter a valid phone number',
})

Ensures the string is a valid phone number.

Implementation

static String? Function(String?) phone({
  String errorMessage = 'Please enter a valid phone number',
}) {
  return _build(errorMessage, (v) => v.isPhone);
}