SharedStorageAccessParams class

Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.

Constructors

SharedStorageAccessParams({String? scriptSourceUrl, String? operationName, String? serializedData, List<SharedStorageUrlWithMetadata>? urlsWithMetadata, String? key, String? value, bool? ignoreIfPresent})
SharedStorageAccessParams.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ignoreIfPresent bool?
Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.workletSet, and SharedStorageAccessType.headerSet.
final
key String?
Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.documentDelete, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.workletDelete, SharedStorageAccessType.workletGet, SharedStorageAccessType.headerSet, SharedStorageAccessType.headerAppend, and SharedStorageAccessType.headerDelete.
final
operationName String?
Name of the registered operation to be run. Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptSourceUrl String?
Spec of the module script URL. Present only for SharedStorageAccessType.documentAddModule.
final
serializedData String?
The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessType.documentRun and SharedStorageAccessType.documentSelectURL.
final
urlsWithMetadata List<SharedStorageUrlWithMetadata>?
Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessType.documentSelectURL.
final
value String?
Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessType.documentSet, SharedStorageAccessType.documentAppend, SharedStorageAccessType.workletSet, SharedStorageAccessType.workletAppend, SharedStorageAccessType.headerSet, and SharedStorageAccessType.headerAppend.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited