setBool abstract method

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

setBool use for store boolean

return true if value store successfully else return false

Example :

ProSheredPreference sheredPrefHelper = ProSheredPreference();

bool result = await sheredPrefHelper.setBool("key", true);
print(result);       // true

Implementation

Future<bool> setBool(String key, bool value);