notificationPreferences function

  1. @riverpod
Future<NotificationPreferences> notificationPreferences(
  1. Ref<Object?> ref
)

Implementation

@riverpod
Future<NotificationPreferences> notificationPreferences(Ref ref) async {
  final ds = ref.watch(supabaseDatasourceProvider);
  final json = await ds.getNotificationPreferences();
  return NotificationPreferences.fromJson(json);
}