bookmarks feature initial
This commit is contained in:
@@ -27,14 +27,14 @@ class ProfileRepository extends _$ProfileRepository {
|
||||
throw Exception('Could not create profile');
|
||||
}
|
||||
|
||||
state = await AsyncValue.guard(_readProfiles);
|
||||
ref.invalidateSelf();
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
Future<void> updateProfileMetadata(Profile profile) async {
|
||||
await filesystem.updateProfileMetadata(profile);
|
||||
state = await AsyncValue.guard(_readProfiles);
|
||||
ref.invalidateSelf();
|
||||
}
|
||||
|
||||
Future<bool> deleteProfile(String id) async {
|
||||
@@ -45,7 +45,7 @@ class ProfileRepository extends _$ProfileRepository {
|
||||
|
||||
await filesystem.getProfileDir(uuid).delete(recursive: true);
|
||||
|
||||
state = await AsyncValue.guard(_readProfiles);
|
||||
ref.invalidateSelf();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ final class ProfileRepositoryProvider
|
||||
ProfileRepository create() => ProfileRepository();
|
||||
}
|
||||
|
||||
String _$profileRepositoryHash() => r'1357d42738d40e8e447ab8879292e81ad7b80b61';
|
||||
String _$profileRepositoryHash() => r'249240ce0e775d4fd9ee3558e6b05326d09d79de';
|
||||
|
||||
abstract class _$ProfileRepository extends $AsyncNotifier<List<Profile>> {
|
||||
FutureOr<List<Profile>> build();
|
||||
|
||||
Reference in New Issue
Block a user