Version: 7.2.0
Testing
#
Overriding providersConsider the next provider
So, maybe in one test you need mock the LoginController behavior then you can use the overrideProvider
method.
Next before your test you can use the setUp
method.
#
Cleaning your providersBefore or after each test you will need the default state of all SimpleNotifier or StateNotifier. So you can use ProviderScope.clear();
to clear all provider saved in the ProviderScope.