close method

void close()

Closes and releases a prepared statement.

Idempotent: subsequent calls after the first are no-ops, avoiding spurious native errors when the wrapper is closed via multiple paths (e.g. runWith block + explicit close).

Implementation

void close() {
  if (_closed) return;
  _closed = true;
  _backend.closeStatement(_stmtId);
}