CacheInfo class
Constructors
- CacheInfo.new({required String url, bool lazy = true, String? belongTo})
- CacheInfo.fromMap(Map map)
Properties
- belongTo → String?
-
The index url this cache is belong to. For a
.ts
file cache, this is the url of them3u8
file containing it.final - current ↔ int?
-
getter/setter pair
- finished → bool
-
no setter
-
fragments
→ List<
CacheFragment> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> ? -
getter/setter pair
- lazy → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription ↔ StreamSubscription?
-
getter/setter pair
- total ↔ int?
-
getter/setter pair
- url → String
-
final
Methods
-
cached(
RequestRange requestRange) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream(
{int begin = 0, int? end, required File createFragmentFile(), IOStreamedResponse? clientResponse, required IOClient client, required Request clientRequest}) → Future< Stream< List< >int> > -
Synchronous the
_stream
entry -
streamFromCache(
{int begin = 0, int? end}) → Stream< List< int> > -
Creates a stream to serve data from
begin
toend
, data is read from cache. -
toJson(
) → Map< String, dynamic> -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited