'What does data_provider stands for? [BloC Design Pattern]

I am following some videos/courses for BloC. A structure like this took my attention:

enter image description here

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?



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 lord