ResourceRequestInfo class final
A request that a resource provider serves.
When the cache holds an earlier copy of the resource, the prior_ fields
describe it.
See mln_resource_request_info in the
C API reference.
Constructors
- 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})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → ResourceKind
-
final
- loadingMethod → ResourceLoadingMethod
-
final
- priorData → Uint8List
-
final
- priorEtag → String
-
Empty when the earlier copy has no ETag.
final
- priorExpiresUnixMs → int?
-
final
- priority → ResourcePriority
-
final
- priorModifiedUnixMs → int?
-
final
- range → ResourceRange?
-
The only bytes of the resource that the request wants.
final
- requestedUrl → String
-
The URL as the style names it.
final
- resolvedUrl → String
-
The URL to load, after the library expands any shorthand in
requested_urland before any resource transform. Routes match this URL.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storagePolicy → ResourceStoragePolicy
-
final
- usage → ResourceUsage
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited