15 : scope_(dart_state->isolate()) {}
18 : scope_(dart_state->
isolate()) {}
25 private_constructor_name_(),
29 message_epilogue_(message_epilogue),
30 has_set_return_code_(
false),
31 is_shutting_down_(
false) {}
41 private_constructor_name_.
Clear();
43 private_constructor_name_.
Set(
53 return isolate_data->get();
59 return isolate_data ? isolate_data->get() :
nullptr;
63 return shared_from_this();
67 if (set_return_code_callback_) {
68 set_return_code_callback_(return_code);
70 has_set_return_code_ =
true;
74 set_return_code_callback_ =
callback;
void Set(DartState *dart_state, Dart_Handle value)
Scope(DartState *dart_state)
virtual void DidSetIsolate()
void SetReturnCode(uint32_t return_code)
static DartState * From(Dart_Isolate isolate)
void SetIsolate(Dart_Isolate isolate)
DartState(int dirfd=-1, std::function< void(Dart_Handle)> message_epilogue=nullptr)
FileLoader & file_loader()
void SetReturnCodeCallback(std::function< void(uint32_t)> callback)
std::weak_ptr< DartState > GetWeakPtr()
static DartState * Current()
static Dart_Handle HandleLibraryTag(Dart_LibraryTag tag, Dart_Handle library, Dart_Handle url)
Dart_Handle HandleLibraryTag(Dart_LibraryTag tag, Dart_Handle library, Dart_Handle url)
DART_EXPORT void * Dart_CurrentIsolateData(void)
DART_EXPORT void Dart_EnterScope(void)
DART_EXPORT void Dart_ExitScope(void)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object)
struct _Dart_Isolate * Dart_Isolate
DART_EXPORT void * Dart_IsolateData(Dart_Isolate isolate)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function