CacheEntryMetadata class
Typed metadata for a cached file entry, stored in Hive.
Constructors
- CacheEntryMetadata({required String url, required String relativePath, required DateTime validTill, String? eTag, int length = 0})
- CacheEntryMetadata.fromMap(Map map)
-
Reconstructs a CacheEntryMetadata from a Hive-stored Map.
factory
Properties
- eTag → String?
-
The HTTP ETag for revalidation, if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The size of the cached file in bytes.
final
- relativePath → String
-
The path of the cached file relative to the cache directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
The original download URL.
final
- validTill → DateTime
-
When this cache entry expires.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serializes this metadata to a Map for Hive storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited