setBool method

Future<bool> setBool({
  1. required bool value,
  2. required String key,
})

Implementation

Future<bool> setBool({required bool value, required String key}) {
  try {
    return pref!.setBool(_getLastStringOfEnum(key), value);
  } catch (e) {
    _logExceptionByDeveloper(_className, 'Error while set bool to shared: ',
        error: e);
    return Future.value(false);
  }
}