Type key
) This function returns a TypeMirror reflecting 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
/**
* This function returns a [TypeMirror] reflecting 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.
*/
external TypeMirror reflectType(Type key);