getBool method

bool? getBool({
  1. required dynamic key,
})

Implementation

bool? getBool({required key}) {
  try {
    if (contain(key: key)) return pref!.getBool(_getLastStringOfEnum(key));
  } catch (e) {
    _logExceptionByDeveloper(
        _className, 'Error while getting bool from shared: ',
        error: e);
  }
  return null;
}