private method

MorpheusPrivate private(
  1. String unlockPassword
)

Implementation

MorpheusPrivate private(String unlockPassword) {
  final nativePwd = unlockPassword.toNativeUtf8();
  try {
    final private = DartApi.native.morpheusPlugin
        .private(_ffi, nativePwd)
        .extract((res) => res.asPointer<Void>());
    return MorpheusPrivate._(private, true);
  } finally {
    calloc.free(nativePwd);
  }
}