isUUID property

bool get isUUID

Checks if the string is a valid UUID.

Implementation

bool get isUUID => regex(
    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}$');