Returns a Int if exists in SharedPref
These codes are from nb_utils package.
int getIntAsync(String key, {int defaultValue = 0}) { return sharedPreferences.getInt(key) ?? defaultValue; }