getProfileName method

Future<String> getProfileName()

Gets the currently selected profile name.

Throws an AskarStoreException if the profile name retrieval fails.

Implementation

Future<String> getProfileName() async {
  try {
    final result = await askarStoreGetProfileName(handle);
    return result.getValueOrException();
  } catch (e) {
    throw AskarStoreException('Failed to get profile name: $e');
  }
}