CacheStatistics

Statistics about the media files being cached.

class CacheStatistics {
  const CacheStatistics({this.fileSize, this.cacheSize, this.downloadSize});

  @JsonKey(name: 'fileSize')
  final int? fileSize;

  @JsonKey(name: 'cacheSize')
  final int? cacheSize;

  @JsonKey(name: 'downloadSize')
  final int? downloadSize;

  factory CacheStatistics.fromJson(Map<String, dynamic> json) =>
      _$CacheStatisticsFromJson(json);

  Map<String, dynamic> toJson() => _$CacheStatisticsToJson(this);
}

Attributes

fileSize
The size (bytes) of the media file being played.
cacheSize
The size (bytes) of the media file that you want to cache.
downloadSize
The size (bytes) of the media file that has been downloaded.