CacheObject class
Flutter Cache Manager Copyright (c) 2019 Rene Floor Released under MIT License. Cache information of one file
Constructors
Properties
- eTag → String?
-
eTag provided by the server for cache expiry
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
Internal ID used to represent this cache object
final
- key → String
-
The key used to identify the object in the cache.
final
- length → int?
-
The length of the cached file
final
- relativePath → String
-
Where the cached file is stored
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touched → DateTime?
-
When the file is last used
final
- url → String
-
The URL that was used to download the file
final
- validTill → DateTime
-
When this cached item becomes invalid
final
Methods
-
copyWith(
{String? url, int? id, String? relativePath, DateTime? validTill, String? eTag, int? length}) → CacheObject -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
{bool setTouchedToNow = true}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMapList(
List< Map< list) → List<String, dynamic> >CacheObject>
Constants
- columnETag → const String
- columnId → const String
- columnKey → const String
- columnLength → const String
- columnPath → const String
- columnTouched → const String
- columnUrl → const String
- columnValidTill → const String