TypeMirror reflectType(Type key)

Reflects the type represented by key.

If key is not an instance of Type, then this function throws an ArgumentError.

Note that since one cannot obtain a Type object from another isolate, this function can only be used to obtain type mirrors on types of the current isolate.

Source

external TypeMirror reflectType(Type key);