async_notifier_example_riverpod
async_notifier_example_riverpod copied to clipboard
AsyncNotifier example with Riverpod
```dart class Listener extends Mock { void call(T? previous, T next); } void main() { ProviderContainer makeProviderContainer() { final ProviderContainer container = ProviderContainer( overrides: [ secureStorageServiceProvider.overrideWithValue(mockSecureStorage), activeSessionsRepositoryProvider.overrideWithValue(mockActiveSessionsRepository), ], ); addTearDown(container.dispose);...
One struggle I have with this new approach and Riverpod in general is the proliferation of providers. It may be my misunderstanding of the library but if FutureOr build() is...