allDTypes top-level property

List<DType> allDTypes
final

One representative for each of the 31 descriptors advertised by protocol v2. Parameterized representatives are illustrative; inspect DType.capabilities before attempting copied import/export or literals.

Implementation

final List<DType> allDTypes = List.unmodifiable([
  ...simpleDTypes.take(20),
  DecimalType(precision: 38, scale: 0),
  const DateTimeType(TimeUnit.microseconds),
  const DurationType(TimeUnit.microseconds),
  ArrayType(const NullType(), 1),
  const ListType(NullType()),
  const ObjectType('object'),
  CategoricalType(
    name: 'category',
    namespace: '',
    hash: BigInt.zero,
    physical: CategoricalPhysical.uint32,
  ),
  EnumType(const []),
  StructType(const []),
  const ExtensionType('extension', NullType()),
  const UnknownType.any(),
]);