5#ifndef LIB_TONIC_DART_WEAK_PERSISTENT_VALUE_H_
6#define LIB_TONIC_DART_WEAK_PERSISTENT_VALUE_H_
10#include "third_party/dart/runtime/include/dart_api.h"
27 bool is_empty()
const {
return handle_ ==
nullptr; }
32 intptr_t external_allocation_size,
37 const std::weak_ptr<DartState>&
dart_state()
const {
return dart_state_; }
40 std::weak_ptr<DartState> dart_state_;
const std::weak_ptr< DartState > & dart_state() const
~DartWeakPersistentValue()
Dart_WeakPersistentHandle value() const
void Set(DartState *dart_state, Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
DartWeakPersistentValue()
struct _Dart_Handle * Dart_Handle
void(* Dart_HandleFinalizer)(void *isolate_callback_data, void *peer)
struct _Dart_WeakPersistentHandle * Dart_WeakPersistentHandle
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback