uuid method

JarString uuid([
  1. String? message
])

Implementation

JarString uuid([String? message]) {
  return matches(
      r'^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$',
      message ?? 'Invalid UUID');
}