ResourceRequestInfo constructor

ResourceRequestInfo({
  1. String requestedUrl = '',
  2. String resolvedUrl = '',
  3. ResourceKind kind = const ResourceKind.fromRawValue(0),
  4. ResourceLoadingMethod loadingMethod = const ResourceLoadingMethod.fromRawValue(0),
  5. ResourcePriority priority = const ResourcePriority.fromRawValue(0),
  6. ResourceUsage usage = const ResourceUsage.fromRawValue(0),
  7. ResourceStoragePolicy storagePolicy = const ResourceStoragePolicy.fromRawValue(0),
  8. ResourceRange? range,
  9. int? priorModifiedUnixMs,
  10. int? priorExpiresUnixMs,
  11. String priorEtag = '',
  12. Uint8List? priorData,
})

Implementation

ResourceRequestInfo({
  this.requestedUrl = '',
  this.resolvedUrl = '',
  this.kind = const ResourceKind.fromRawValue(0),
  this.loadingMethod = const ResourceLoadingMethod.fromRawValue(0),
  this.priority = const ResourcePriority.fromRawValue(0),
  this.usage = const ResourceUsage.fromRawValue(0),
  this.storagePolicy = const ResourceStoragePolicy.fromRawValue(0),
  this.range,
  this.priorModifiedUnixMs,
  this.priorExpiresUnixMs,
  this.priorEtag = '',
  Uint8List? priorData,
}) : priorData = Uint8List.fromList(
       priorData ?? const <int>[],
     ).asUnmodifiableView();