refactor(crud_bloc): update package using new architecture usecase execute method (close #77)

This commit was merged in pull request #79.
This commit is contained in:
AN12345
2022-12-08 13:29:01 -05:00
parent bf03324fd0
commit 3aa6d03dd6
8 changed files with 18 additions and 15 deletions
@@ -29,12 +29,12 @@ class Query<Model extends ObjectModel>
@override
FutureOr<void> onStart(List<QueryInterface>? params) {
if(params == null){
if (params == null) {
throw ClientException('List of conditions cannot be null.');
}
}
@override
FutureOrResult<List<Model?>> call(List<QueryInterface>? params) =>
FutureOrResult<List<Model?>> execute(List<QueryInterface>? params) =>
_crudRepository.query(params!);
}