In google IO 18, the Flutter presenters have showed a feature but have not showed how to implement this. The video (at exact time) is: https://youtu.be/RS36gBEp8OI?t=1776
How to implement such thing? How can I properly make the Stream to be correctly formatted based on a Sink?
(sorry but I am not too familiar with Rx)
Use the
combineLatestfunction from the rxdart package. It takes the latest values of input streams, so any time either the locale or cart items change it will calculate and format the total cost.Disclaimer: I didn't try to run this code so there might be errors but the basic idea should be solid.