askarKeyEntryListGetName function
Implementation
AskarResult<String> askarKeyEntryListGetName(KeyEntryListHandle handle, int index) {
Pointer<Pointer<Utf8>> utf8PtPointer = calloc<Pointer<Utf8>>();
try {
final result = nativeAskarKeyEntryListGetName(handle.toInt(), index, utf8PtPointer);
final errorCode = ErrorCode.fromInt(result);
final String value =
(errorCode == ErrorCode.success) ? utf8PtPointer.value.toDartString() : "";
return AskarResult<String>(errorCode, value);
} finally {
freeDoublePointer(utf8PtPointer);
}
}