isCached abstract method

Future<bool> isCached(
  1. String url,
  2. Map<String, Object>? headers,
  3. int cacheSegments
)

Whether the video is cached.

url: The video URL to check. headers: Optional HTTP headers to use for the request. cacheSegments: Number of segments to cache.

Returns true if the video is cached, otherwise false.

Implementation

Future<bool> isCached(
  String url,
  Map<String, Object>? headers,
  int cacheSegments,
);