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:
@@ -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!);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user