How to properly test in Flutter Riverpod?
I am working on personal flutter project using Riverpod without hooks or code generation. I just implemented localization for the app. The implementation consists of single button that when pressed changes the current language to the other language due to using only two languages in the app.I used AutoDisposeAsyncNotifier to change the state of the app localization and to save locally via Shared Prefferences the current locale. I would like to make unit tests for the logic, but i am strugling with understanding from the riverpod documentation how to properly test the AsynNotifier/Provider that i am using.
Here is the content of the localization notifier i implemented: