StateHolder class Null safety
StateHolder is A wrapper around InheritedWidget to make them easier to use and more reusable.
By using StateHolder instead of manually writing InheritedWidget, you get:
- simplified allocation of resources
- a vastly reduced boilerplate over making a new class every time
- friendly to devtools
- increased scalability for classes with a listening mechanism that grows exponentially in complexity (such as ChangeNotifier, which is O(N) for dispatching notifications).