ClassParser<T>.fromType constructor

ClassParser<T>.fromType(Type R)

Implementation

factory ClassParser.fromType(Type R) {
  var mirror = reflectType(ClassParser, [R]);
  var instanceMirror = (mirror as ClassMirror).newInstance(Symbol(''), [], {#preheat: true, #register: true});
  return instanceMirror.reflectee;
}