retrieve method
Implementation
SecureStorageReadResult retrieve(String key) {
final keyPointer = key.toNativeUtf8();
final outValue = calloc<Uint8>(maxValueBytes).cast<Utf8>();
try {
final status = _retrieve(keyPointer, outValue, maxValueBytes);
if (status > 0) {
return SecureStorageReadResult(status, outValue.toDartString());
}
return SecureStorageReadResult(status, null);
} finally {
calloc.free(outValue);
calloc.free(keyPointer);
}
}