BlobPart class

Represents binary data with an associated MIME type sent to and received from requests.

Implemented types
Available extensions

Constructors

BlobPart(String mimeType, Uint8List blob)

Properties

blob Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
mimeType String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asBlobPartOrNull() BlobPart?
Returns the part as a BlobPart if it represents a blob, and null otherwise.
override
asImageOrNull() Uint8List?
Returns the part as a Uint8List if it represents an image, and null otherwise.
override
asTextOrNull() String?
Returns the part as a String if it represents text, and null otherwise.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInternal() Future<InternalPart>

Available on Part, provided by the PartInternal extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited