setSharedStorageEntry method
Sets entry with key
and value
for a given origin's shared storage.
ignoreIfPresent
If ignoreIfPresent
is included and true, then only sets the entry if
key
doesn't already exist.
Implementation
Future<void> setSharedStorageEntry(
String ownerOrigin, String key, String value,
{bool? ignoreIfPresent}) async {
await _client.send('Storage.setSharedStorageEntry', {
'ownerOrigin': ownerOrigin,
'key': key,
'value': value,
if (ignoreIfPresent != null) 'ignoreIfPresent': ignoreIfPresent,
});
}