feedbackRepositoryProvider top-level property

Provider<FeedbackRepository> feedbackRepositoryProvider
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 ?? []);
  },
);