CloudflareR2Object constructor

const CloudflareR2Object({
  1. required String key,
  2. String? version,
  3. int? size,
  4. String? etag,
  5. String? httpEtag,
  6. DateTime? uploaded,
  7. Map<String, String> httpMetadata = const <String, String>{},
  8. Map<String, String> customMetadata = const <String, String>{},
  9. Map<String, String> checksums = const <String, String>{},
  10. Stream<List<int>>? body,
})

Creates a CloudflareR2Object value.

Implementation

const CloudflareR2Object({
  required this.key,
  this.version,
  this.size,
  this.etag,
  this.httpEtag,
  this.uploaded,
  this.httpMetadata = const <String, String>{},
  this.customMetadata = const <String, String>{},
  this.checksums = const <String, String>{},
  this.body,
});