ResourceResponse constructor
- ResourceResponseStatus status = const ResourceResponseStatus.fromRawValue(0),
- ResourceErrorReason errorReason = const ResourceErrorReason.fromRawValue(0),
- Uint8List? bytes,
- String errorMessage = '',
- bool mustRevalidate = false,
- int? modifiedUnixMs,
- int? expiresUnixMs,
- String etag = '',
- int? retryAfterUnixMs,
Implementation
ResourceResponse({
this.status = const ResourceResponseStatus.fromRawValue(0),
this.errorReason = const ResourceErrorReason.fromRawValue(0),
Uint8List? bytes,
this.errorMessage = '',
this.mustRevalidate = false,
this.modifiedUnixMs,
this.expiresUnixMs,
this.etag = '',
this.retryAfterUnixMs,
}) : bytes = Uint8List.fromList(bytes ?? const <int>[]).asUnmodifiableView();