Creating a ChangeNotifier: Creating the instance inside build using ChangeNotifierProvider . value will lead to memory leaks and potentially undesired side-effects.
Creating a ChangeNotifier: Creating the instance inside build using ChangeNotifierProvider . value will lead to memory leaks and potentially undesired side-effects.