removeProfile method

Future<bool> removeProfile(
  1. String name
)

Removes a profile from the store.

Throws an AskarStoreException if removing the profile fails.

Implementation

Future<bool> removeProfile(String name) async {
  try {
    final result = await askarStoreRemoveProfile(handle, name);
    result.throwOnError();
    return result.value;
  } catch (e) {
    throw AskarStoreException('Failed to remove profile: $e');
  }
}