unregister static method

void unregister()

Cleanup

Implementation

static void unregister() {
  if (_callbacksPtr != null) {
    calloc.free(_callbacksPtr!);
    _callbacksPtr = null;
  }
  _isRegistered = false;
}