Closed rodriger06 closed 8 months ago
The double dot notation (..
) is a special Dart syntax called a cascade.
Try something like:
query
..param(Income_.Id).value = 6
..param(Income_.groupId).value = 123;
Or do not use the cascade syntax and just call the methods separately:
query.param(Income_.Id).value = 6;
query.param(Income_.groupId).value = 123;
Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.
hi,
I have a query in objectbox that takes two parameters. here is my code
i am calling my function as
where _myservice.myvariable is a reference to objectbox flutter which then call my function. i am getting error in line List incomes = queryResult.find();
if i remove one parameter from the function so that i looks like this
then the error goes away. I want to be able to pass two or more parameters to my query. how can i do this? can someone provide sample code? the documentation doesnt say anything about passing two or more parameters.