Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: how based on foo list item, change bar list item with RxDart ? #654

Open
resfandiari opened this issue Dec 11, 2021 · 1 comment
Labels

Comments

@resfandiari
Copy link

Is it possible to do this with RxDart?

 fooList.map((foo) {
    barList.map((bar) {
       if (bar.id == foo.id)
         {
              return bar.copyWith(isEnable: true);
         }
              return bar;
    }).toList();
 }).toList();
@hoc081098
Copy link
Collaborator

You can use scan

@hoc081098 hoc081098 added the waiting for response Waiting for follow up label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants