toRuntimeType method

RuntimeType toRuntimeType()

Create a RuntimeType representing this Type.

Implementation

RuntimeType<dynamic> toRuntimeType() =>
    (reflectType(RuntimeType, [this]) as ClassMirror).newInstance(
      // Use the allowingDynamic constructor in case this type is dynamic.
      #allowingDynamic,
      [],
    ).reflectee as RuntimeType;