#include <dart_weak_persistent_value.h>
◆ DartWeakPersistentValue()
tonic::DartWeakPersistentValue::DartWeakPersistentValue |
( |
| ) |
|
◆ ~DartWeakPersistentValue()
tonic::DartWeakPersistentValue::~DartWeakPersistentValue |
( |
| ) |
|
◆ Clear()
void tonic::DartWeakPersistentValue::Clear |
( |
| ) |
|
Definition at line 29 of file dart_weak_persistent_value.cc.
29 {
30 if (!handle_) {
31 return;
32 }
33
36
37
38 handle_ = nullptr;
39 return;
40 }
41
42
43
47 } else {
48
49
52 }
53 }
54
55
56 dart_state_.reset();
57 handle_ = nullptr;
58}
const std::weak_ptr< DartState > & dart_state() const
DART_EXPORT void Dart_DeleteWeakPersistentHandle(Dart_WeakPersistentHandle object)
DART_EXPORT Dart_IsolateGroup Dart_CurrentIsolateGroup(void)
◆ dart_state()
const std::weak_ptr< DartState > & tonic::DartWeakPersistentValue::dart_state |
( |
| ) |
const |
|
inline |
◆ Get()
Definition at line 60 of file dart_weak_persistent_value.cc.
60 {
64 if (!handle_) {
65 return nullptr;
66 }
68}
DART_EXPORT Dart_Handle Dart_HandleFromWeakPersistent(Dart_WeakPersistentHandle object)
◆ is_empty()
bool tonic::DartWeakPersistentValue::is_empty |
( |
| ) |
const |
|
inline |
◆ Set()
Definition at line 18 of file dart_weak_persistent_value.cc.
22 {
27}
DART_EXPORT Dart_WeakPersistentHandle Dart_NewWeakPersistentHandle(Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ value()
The documentation for this class was generated from the following files: