import 'package:flutter/foundation.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; /// Debug-only settings for development and testing. /// Only functional in debug builds (kDebugMode). class DebugSettings { final bool bypassGeofence; const DebugSettings({this.bypassGeofence = false}); DebugSettings copyWith({bool? bypassGeofence}) { return DebugSettings(bypassGeofence: bypassGeofence ?? this.bypassGeofence); } } class DebugSettingsNotifier extends StateNotifier { DebugSettingsNotifier() : super(const DebugSettings()); void toggleGeofenceBypass() { if (kDebugMode) { state = state.copyWith(bypassGeofence: !state.bypassGeofence); } } void setGeofenceBypass(bool value) { if (kDebugMode) { state = state.copyWith(bypassGeofence: value); } } } final debugSettingsProvider = StateNotifierProvider( (ref) => DebugSettingsNotifier(), );