CategoricalType constructor

CategoricalType({
  1. required String name,
  2. required String namespace,
  3. required BigInt hash,
  4. required CategoricalPhysical physical,
})

Creates a categorical type descriptor.

Throws an ArgumentError when hash does not fit in unsigned 64 bits.

Implementation

CategoricalType({
  required this.name,
  required this.namespace,
  required BigInt hash,
  required this.physical,
}) : hash = hash {
  _requireUnsigned64(hash, 'hash');
}