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'})
const

Properties

bytes → Uint8List
final
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String
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