ToolImage class final

A picture a tool answers with: the encoded bytes and their media type.

Inheritance

Constructors

ToolImage(Uint8List bytes, {String mimeType = 'image/png'})
A picture of bytes encoded as mimeType, PNG by default.
const

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/png unless 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