docs(arch): add documentation

This commit is contained in:
2023-04-13 23:29:27 +02:00
parent 7a3de79e36
commit e5e0550017
19 changed files with 90 additions and 30 deletions
@@ -33,7 +33,7 @@ class AddPhotoToFavorites extends AsyncUseCase<Photo, List<Photo>> {
@override
FutureOr<void> onStart(Photo? params) {
if (params == null) {
throw ClientException('Photo cannot be null');
throw const ClientException('Photo cannot be null');
}
}
}
@@ -30,7 +30,7 @@ class CheckIfPhotoIsInFavorites extends AsyncUseCase<int, bool> {
@override
FutureOr<void> onStart(int? params) {
if (params == null) {
throw ClientException('id cannot be null');
throw const ClientException('id cannot be null');
}
}
}
@@ -33,7 +33,7 @@ class DisplayPhoto extends AsyncUseCase<int, Photo> {
@override
FutureOr<void> onStart(int? params) {
if (params == null) {
throw ClientException('id cannot be null');
throw const ClientException('id cannot be null');
}
}
}
@@ -39,7 +39,7 @@ class OpenAlbum extends AsyncUseCase<QueryParameters, List<Photo>> {
@override
FutureOr<void> onStart(QueryParameters? params) {
if (params == null) {
throw ClientException('params cannot be null');
throw const ClientException('params cannot be null');
}
}
}
@@ -33,7 +33,7 @@ class RemovePhotoFromFavorites extends AsyncUseCase<int, List<Photo>> {
@override
FutureOr<void> onStart(int? params) {
if (params == null) {
throw ClientException('id cannot be null');
throw const ClientException('id cannot be null');
}
}
}
@@ -37,7 +37,7 @@ class RetrieveAllAlbums extends AsyncUseCase<QueryParameters, List<Album>> {
@override
FutureOr<void> onStart(QueryParameters? params) {
if (params == null) {
throw ClientException('params cannot be null');
throw const ClientException('params cannot be null');
}
}
}