setDefaultProfile method
- String name
Sets the default profile name when the store is opened.
Throws an AskarStoreException if setting the default profile fails.
Implementation
Future<void> setDefaultProfile(String name) async {
try {
(await askarStoreSetDefaultProfile(handle, name)).throwOnError();
} catch (e) {
throw AskarStoreException('Failed to set default profile: $e');
}
}