TextPart class

Represents text or string based data sent to and received from requests.

Implemented types
Available extensions

Constructors

TextPart(String text)

Properties

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

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