refreshNotificationsProvider top-level property
final
Provides a use case for refreshing the user's list of notifications
Implementation
final refreshNotificationsProvider = Provider<RefreshNotificationsUseCase>(
(ref) {
return (context) => Future.wait([
Future.delayed(const Duration(seconds: 1)),
refreshNotificationsApi(context),
]);
},
);