longestStreak function

  1. @riverpod
Future<int> longestStreak(
  1. Ref<Object?> ref
)

Implementation

@riverpod
Future<int> longestStreak(Ref ref) async {
  final ds = ref.watch(supabaseDatasourceProvider);
  final dates = await ds.getSessionDates();
  return StreakCalculator.longestStreak(dates);
}