callback property
- @Since.new('3.14')
The finalization callback this finalizer was created with.
An object that eagerly releases the native resource it owns, for example
in a dispose method, can detach from this finalizer and then run the
callback itself with NativeFunctionPointer.asFunction, instead of
separately keeping track of the callback.
Implementation
@Since('3.14')
Pointer<NativeFinalizerFunction> get callback;