set abstract method
set use for store any type of data
return true
if data store successfully else return false
Example :
ProSheredPreference sheredPrefHelper = ProSheredPreference();
bool result1 = await sheredPrefHelper.set("key1", "value");
print(result1); // true
bool result2 = await sheredPrefHelper.set("key2", true);
print(result2); // true
bool result3 = await sheredPrefHelper.set("key3", {
"key1": "value",
"key2": 1,
"key3": 2.3,
"key4": true,
"key5": [1, 2, false],
"key6": {"k": "v"},
"key7": ["value", 1, 2.2, [1, 2, false], true]
});
print(result3); // true
Implementation
Future<bool> set(String key, dynamic value);