setItem method
Saves item by key to a storage. Value should be json encodable (json.encode()
is called under the hood).
Implementation
setItem(String key, value) async {
_data[key] = value;
return _flush();
}
Saves item by key to a storage. Value should be json encodable (json.encode()
is called under the hood).
setItem(String key, value) async {
_data[key] = value;
return _flush();
}