ImagePart class

Represents image data sent to and received from requests.

When this is sent to the server it is converted to jpeg encoding at 80% quality.

Implemented types
Available extensions

Constructors

ImagePart(Uint8List image)

Properties

hashCode int
The hash code for this object.
no setterinherited
image Uint8List
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