Thank you for your article. I understand the intention of BLoC patter, but not sure about the reason of separating movie_api_provider.dart and reporsitory.dart, at least in your example in this article. Could you explain more about this two layers (network provider + repository)? Or could you show a more suitable use case? Thank you.

Senior Application Developer. MBA. I write blogs about .NET, Angular, JavaScript/TypeScript, Docker, AWS, DDD, and many others.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store