getRawClass method

Class? getRawClass()

Implementation

Class? getRawClass() {
  if (_type == _resolved?.getType()) {
    return _resolved;
  }

  // Try to resolve from type discovery
  final declaration = TypeDiscovery.findByType(_type);
  if (declaration != null) {
    return Class.declared(declaration, ProtectionDomain.system());
  }

  return null;
}