private method
Implementation
HydraPrivate private(String unlockPassword) {
final nativePwd = unlockPassword.toNativeUtf8();
try {
final ffiPrivate = DartApi.native.hydraPlugin
.private(_ffi, nativePwd)
.extract((res) => res.asPointer<Void>());
return HydraPrivate(ffiPrivate, _owned);
} finally {
calloc.free(nativePwd);
}
}