feedbackRepositoryProvider top-level property
final
Provides the current FeedbackRepository
instance.
Implementation
final feedbackRepositoryProvider = Provider<FeedbackRepository>(
(ref) {
final feedbackDataSource = ref.watch(feedbackDataSourceProvider);
final user = ref.watch(userProvider);
return StdFeedbackRepository(feedbackDataSource, user?.capabilities ?? []);
},
);