title: How to clear all SharedPreferences keys except 2 Keys in flutter
body: <p>I'm trying to clear all the key values of SharedPreferences during logout except 2 keys <code>"EmailID"</code> and <code>"Password"</code>. As we know that there is only single SharedPreferences instance allowed in flutter so I can't make a different instance for storing <code>"EmailID"</code> and <code>"Password"</code> and remove a particular key is not a good practice to remove 20+ keys. If i used <code>prefs.clear();</code> that will clear all the key values any help much-appreciated thanks. </p>