revokeKey method

MorpheusOperation revokeKey(
  1. String authentication
)

Implementation

MorpheusOperation revokeKey(String authentication) {
  final nativeAuth = authentication.toNativeUtf8();
  try {
    final op = DartApi.native.morpheusOperationBuilder
        .revokeKey(_ffi, nativeAuth)
        .extract((res) => res.asPointer<Void>());
    return MorpheusOperation(op, true);
  } finally {
    calloc.free(nativeAuth);
  }
}