ContentBuilder class

Builder class for constructing Content objects.

Constructors

ContentBuilder.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
parts List<Part>
final
role String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

blob(String mimeType, Uint8List blob) → void
Adds a blob part to the content.
build() Content
Builds the Content object.
image(Uint8List image) → void
Adds an image part to the content.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text(String text) → void
Adds a text part to the content.
toString() String
A string representation of this object.
inherited

Operators

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