code property

ElementType get code

The ElementType code corresponding to this metadata type.

Throws an UnsupportedError, if the type does not have a direct encoding (e.g., const reference).

Implementation

ElementType get code =>
    throw UnsupportedError('Unsupported type: $runtimeType');