DVDiskMediaCache class
final
Methods
clear ()
→ Future <void >
Deletes everything not being read right now.
override
close ()
→ Future <void >
Stops the loopback server. Addresses it handed out stop working.
override
contains (String url , {int ? bytes })
→ Future <bool >
Whether the first bytes of url -- all of it, when null -- are on
disk.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playbackAddress (String url )
→ Future <String >
What a player should open for url: a loopback address that streams it
through the cache, or url itself for anything that is not http: or
https:.
override
precache (String url , {int ? bytes })
→ Future <void >
Fetches url into the cache before anything plays it: the first
bytes of it, or all of it when bytes is null. Completes when the
bytes are on disk; throws HttpException when the origin refuses.
override
size ()
→ Future <int >
Bytes on disk.
override
toString ()
→ String
A string representation of this object.
inherited