import 'package:flutter_riverpod/flutter_riverpod.dart'; import '../shared/scoring/match_scoring_rules.dart'; import 'session_provider.dart'; final matchScoringRulesProvider = Provider((ref) { final match = ref.watch(sessionProvider).match; if (match == null) { return const MatchScoringRules(setsToWin: 3); } return MatchScoringRules.fromMatch(match); });