Understanding Providers.

Providers are completely new things for anyone switching to Flutter from Native mobile apps development. There are lots and lots of articles written on it. In this article I have shared my knowledge on one of the type of Provider, that is “ProxyProvider”. This article is requires your understanding of Dart, State Management in Flutter, “Provider” Package, ChangeNotifier and so on. So this is definitely not for beginners.

  1. •Class Name: “BALCONY” => Is not ChangeNotifier
  2. “HOUSE” is dependency injected to “BALCONY”.
  3. ProxyProvider is used to inject this dependency.
  4. Now there are two ways we can use ProxyProvider.
  5. ProxyProvider has one main method to be careful of. It is “Update” method.
  6. So main magic happens in this “Update” method.
  7. “Update” method determines how to react to the change in injected dependency.

Freelance Mobile Apps Developer/ Senior iOS Developer / Game Developer/ Traveler / IT Consultant