Save ask on exit setting.
Future<void> saveAskOnExit(bool value) async { final prefs = await SharedPreferences.getInstance(); await prefs.setBool('askOnExit', value); }