disable method

Future<void> disable()

Implementation

Future<void> disable() async {
  _enabled = false;
  _currentSessionId = null;
  try {
    final prefs = await SharedPreferences.getInstance();
    await prefs.setBool(_prefKey, false);
  } catch (_) {}
}