ResourceResponse constructor

ResourceResponse({
  1. ResourceResponseStatus status = const ResourceResponseStatus.fromRawValue(0),
  2. ResourceErrorReason errorReason = const ResourceErrorReason.fromRawValue(0),
  3. Uint8List? bytes,
  4. String errorMessage = '',
  5. bool mustRevalidate = false,
  6. int? modifiedUnixMs,
  7. int? expiresUnixMs,
  8. String etag = '',
  9. 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();