Settings constructor

Settings({
  1. required int added,
  2. required List<String> permissions,
  3. required int sizeFilesOptional,
  4. required int sizeOptional,
  5. required bool serving,
  6. required Cache cache,
  7. required int optionalDownloaded,
  8. required bool own,
  9. String? ajaxKey,
  10. int? downloaded,
  11. int? size,
  12. int? sizeLimit,
  13. String? autodownloadoptional,
  14. num? modified,
})

Implementation

Settings({
  required this.added,
  required this.permissions,
  required this.sizeFilesOptional,
  required this.sizeOptional,
  required this.serving,
  required this.cache,
  required this.optionalDownloaded,
  required this.own,
  this.ajaxKey,
  this.downloaded,
  this.size,
  this.sizeLimit,
  this.autodownloadoptional,
  this.modified,
  //
  // this.bytesRecv,
  // this.bytesSent,
  // this.peers,
}) {
  downloaded ??= added;
}