ToolImage class final
A picture a tool answers with: the encoded bytes and their media type.
- Inheritance
-
- Object
- ToolContent
- ToolImage
Constructors
Properties
- bytes → Uint8List
-
The encoded picture, written base64 as the content's
data.final - hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String
-
The media type of bytes:
image/pngunless told otherwise.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The protocol's content object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited