Part class abstract

Interface representing data sent to and received from requests.

One of:

  • TextPart representing text or string based data.
  • ImagePart representing image data.
  • BlobPart representing MIME typed binary data.
Implementers
Available extensions

Constructors

Part()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
asImageOrNull() Uint8List?
Returns the part as a Uint8List if it represents an image, and null otherwise.
asTextOrNull() String?
Returns the part as a String if it represents text, and null otherwise.
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