close method

void close()

Close the current SDK instance. After calling close, the instance cannot be used anymore.

Implementation

void close() {
  if (_closed) {
    throw SealdException(
        code: "INSTANCE_CLOSED",
        id: "FLUTTER_INSTANCE_CLOSED",
        description: "Instance already closed.");
  }
  _closed = true;
  _bindings.SealdAnonymousSdk_Close(_ptr.pointer());
}