saveAskOnExit method

Future<void> saveAskOnExit(
  1. bool value
)

Save ask on exit setting.

Implementation

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