dispose method

Future<void> dispose()

Destroy the object

@param this_ the object handle

Implementation

Future<void> dispose() async {
  if (_owner == null) {
    _finalizer.detach(this);
    await _destroy(_i3.DestroyReference(
      _isolate,
      _pointer,
    ));
  }
}