ResourceRequestInfo constructor
ResourceRequestInfo({ - String requestedUrl = '',
- String resolvedUrl = '',
- ResourceKind kind = const ResourceKind.fromRawValue(0),
- ResourceLoadingMethod loadingMethod = const ResourceLoadingMethod.fromRawValue(0),
- ResourcePriority priority = const ResourcePriority.fromRawValue(0),
- ResourceUsage usage = const ResourceUsage.fromRawValue(0),
- ResourceStoragePolicy storagePolicy = const ResourceStoragePolicy.fromRawValue(0),
- ResourceRange? range,
- int? priorModifiedUnixMs,
- int? priorExpiresUnixMs,
- String priorEtag = '',
- 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();