data_provider 代表什么? [BloC设计模式]
I am following some videos/courses for BloC. A structure like this took my attention:
And I applied the folder structure. What I couldn't figure out is what should be inside in data_provider how it should look? What am i supposed to put in it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Bloc 和 Cubits 用于 flutter 的状态管理。在这种情况下,data_providers 目录将包含从 API 或任何数据源获取可在整个应用程序中使用的数据的功能。
Bloc and Cubits are used in state management of your flutter.For this case the data_providers directory will contain the functionality of fetching the data to be availed throughout your app probably from an API or whatever the source of your data.