StorageEntry<T> class

A single entry in a window.localStorage or window.sessionStorage map.

Inheritance

Constructors

StorageEntry(String key, {StorageType type: StorageType.localStorage, bool saveLastModified: false, Parser<T> parser})

Properties

exists → Future<bool>
read-only, override
key → String
final
lastModified → Future<DateTime>
Returns null if exists is false.
read-only, override
modifiedKey → String
The storage key for modification time when saveLastModified is true.
read-only
saveLastModified → bool
Create a duplicate storage entry when this entry is written.
final
storage → Storage
read-only
type StorageType
final
value → String
read-only
basename → String
The basename() of the path.
read-only, inherited
data → T
Synchronously get the most recently loaded data.
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
location → String
The location (a path or url) of the resource.
final, inherited
parser Parser<T>
final, inherited
path → String
This resource's path on the system.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete() → Future<void>
Remove this resource from disk and sets data to null. [...]
override
fetchContents() → Future
Fetch the raw contents from the underlying platform. [...]
override
write(dynamic contents) → Future<T>
Persist the contents to disk. [...]
override
get({bool forceReload: false}) → Future<T>
Gets the most readily available data or refreshes it if forceReload is true.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
parseContents(dynamic contents) → T
contents is a String or List<int>, depending on whether the underlying resource is binary or string based. [...]
inherited
preParseContents(dynamic contents) → dynamic
For internal parsing before calling parseContents.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited