port static method

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

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);
}