removeResidentKit method

bool removeResidentKit(
  1. String tag
)

Implementation

bool removeResidentKit(String tag) {
  if (residentList.contains(tag)) {
    residentList.remove(tag);
    SharedPreferences.getInstance().then((SharedPreferences prefs) =>
        prefs.setString(KEY_KIT_PAGE_CACHE, listToString(residentList)));
    return true;
  }
  return false;
}