validate static method

bool validate(
  1. String uuid
)

Validates whether the given uuid is a valid UUID.

Implementation

static bool validate(String uuid) {
  if (uuid.length == ((16 * 2) + 4)) {
    return true; // Likely is true. This is just a surface level check
  } else {
    return false;
  }
}