ToolResource class final

A resource carried inside the answer: its uri, and its contents as text or as bytes (blob).

Inheritance

Constructors

ToolResource({required String uri, String? mimeType, String? text, Uint8List? blob})
const

Properties

blob → 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
text → String?
final
uri → String
final

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