UuidValue.fromNamespace constructor - UuidValue - uuid_value library - Dart API
Description: API docs for the UuidValue.fromNamespace constructor from Class UuidValue from the uuid_value library, for the Dart programming language.

# UuidValue.fromNamespace constructor

const UuidValue.fromNamespace(

1. Namespace ns

)

fromNamespace() creates a UuidValue from a Namespace enum.

## Implementation

    const UuidValue.fromNamespace(Namespace ns)
        : uuid = ns == Namespace.nil
              ? InternalConstants.zNIL
              : ns == Namespace.dns
                  ? InternalConstants.zDNS
                  : ns == Namespace.url
                      ? InternalConstants.zURL
                      : ns == Namespace.oid
                          ? InternalConstants.zOID
                          : ns == Namespace.x500
                              ? InternalConstants.zX500
                              : ns == Namespace.max
                                  ? InternalConstants.zMAX
                                  : InternalConstants.zNIL;