init static method

void init(
  1. Vault vault,
  2. String unlockPassword
)

Implementation

static void init(Vault vault, String unlockPassword) {
  final nativePwd = unlockPassword.toNativeUtf8();
  try {
    return DartApi.native.morpheusPlugin
        .init(vault.ffi, nativePwd)
        .extract((res) => res.asVoid);
  } finally {
    calloc.free(nativePwd);
  }
}