uuid static method

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

Ensures the string is a valid UUID.

Implementation

static String? Function(String?) uuid({
  String errorMessage = 'Please enter a valid UUID',
}) {
  return _build(errorMessage, (v) => v.isUUID);
}