getMetadata method

String getMetadata(
  1. int index
)

Gets the metadata of the key entry at the specified index.

Throws an AskarKeyEntryListException if the metadata retrieval fails.

Implementation

String getMetadata(int index) {
  try {
    return askarKeyEntryListGetMetadata(this, index).getValueOrException();
  } catch (e) {
    throw AskarKeyEntryListException('Failed to get metadata: $e');
  }
}