dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  if (_owned) {
    DartApi.native.hydraPublic.delete(_ffi);
    _ffi = nullptr;
    _owned = false;
  }
}