getBlob abstract method
Gets a Blob using its metadata.
If the blob with the specified metadata doesn’t exist, returns null
.
If the provided properties
don't contain valid metadata, an
ArgumentError is thrown.
Property | Type | Description | Required |
---|---|---|---|
@type | const "blob" | Marks dictionary as containing Blob metadata. | Yes |
content_type | string | Content type ex. text/plain. | No |
length | int | Length of the Blob in bytes. | No |
digest | string | Cryptographic digest of the Blob’s content. | Yes |
See also:
- Blob.isBlob to check if a Map contains valid Blob metadata.
Implementation
FutureOr<Blob?> getBlob(Map<String, Object?> properties);