getCategory method

String getCategory(
  1. int index
)

Gets the category of the entry at the specified index.

Throws an AskarEntryListException if the category retrieval fails.

Implementation

String getCategory(int index) {
  try {
    return askarEntryListGetCategory(this, index).getValueOrException();
  } catch (e) {
    throw AskarEntryListException('Failed to get category: $e');
  }
}