21 const auto&
result = info_cache_.insert(std::make_pair(&
info,
nullptr));
24 return result.first->second;
26 return GetAndCacheClass(
info.library_name,
info.interface_name,
31 const std::string& library_name,
32 const std::string& interface_name) {
33 auto key = std::make_pair(library_name, interface_name);
34 const auto&
result = name_cache_.insert(std::make_pair(
key,
nullptr));
37 return result.first->second;
39 return GetAndCacheClass(library_name.c_str(), interface_name.c_str(),
44 const char* library_name,
45 const char* interface_name,
47 auto it = providers_.find(library_name);
50 Dart_Handle class_handle = it->second->GetClassByName(interface_name);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Dart_PersistentHandle GetClass(const DartWrapperInfo &info)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object)
Dart_Handle Dart_PersistentHandle