shutdown method Null safety

void shutdown()

Shutdown the library.

Implementation

void shutdown() {
  check(synthizer.syz_shutdown());
  [
    _eventPointer,
    intPointer,
    bigIntPointer,
    majorPointer,
    minorPointer,
    patchPointer,
    routeConfig,
    doublePointer,
    x1,
    y1,
    z1,
    x2,
    y2,
    z2,
    userdataFreeCallbackPointer,
    deleteBehaviorConfigPointer,
    sineBankWavePointer,
    sineBankConfigPointer
  ].forEach(calloc.free);
  _wasInit = false;
}