reflectedType property Null safety

Type reflectedType

If hasReflectedType returns true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown.

Required capabilities: reflectedType can be invoked iff hasReflectedType returns true. However, capabilities can be used to extend the set of situations where hasReflectedType returns true, by having a reflectedTypeCapability in the reflector for this TypeMirror.

Implementation

Type get reflectedType;