port static method
Ensures the string is a valid port number.
Implementation
static String? Function(String?) port({
String errorMessage = 'Please enter a valid port number',
}) {
return _build(errorMessage, (v) => v.isPort);
}
Ensures the string is a valid port number.
static String? Function(String?) port({
String errorMessage = 'Please enter a valid port number',
}) {
return _build(errorMessage, (v) => v.isPort);
}