1 min readMay 5, 2020
So I guess along the lines of :
- Add a new bloc ‘event’ to take a new tip, something like
class NewTipEvent extends .. {
final Tip tip;}
And then inside the bloc look for a ‘new tip event’ and call ‘new tip’ on the repository, then either return a new state with that tip added to it, or else await the add and call refresh to get the latest value