UUID constructor

UUID(
  1. Iterable<int> value
)

Creates a new UUID from 16 bytes.

Implementation

UUID(Iterable<int> value) : value = value.toList() {
  if (value.length != 16) {
    throw const FormatException('Invalid length UUID');
  }
}