When making use of the provider package for state management in your application, it is advisable to keep a note of the following best practices for building an optimized solution: You can find the complete code for this example at the following git repository. To listen to changes in the data at any lower level.To produce changes to the data by updating state through provided methods at any lower level avoiding need for passing callbacks through intermediate levels.To consume the data at any lower level without any intermediate dependencies.Thus by making use of the various classes of the Provider package, we are able to provide data at the top level of the widget tree and be able:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |