1 min readFeb 11, 2020
It’s a good idea to keep these separate by placing business logic in a different set of files and using some design pattern or other to communicate between the two. I personally like to use Stream and StreamSubscription to pull this off and it makes for a very clean and well-organized project with de-coupled business logic and UX.