ToolResource class final
- Inheritance
-
- Object
- ToolContent
- ToolResource
Constructors
- ToolResource({required String uri, String? mimeType, String? text, Uint8List? blob})
-
The resource at
uriwith its contents. Asserts that exactly one oftextandblobis given.const
Properties
- blob → Uint8List?
-
The contents as bytes, written base64; null when they are text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String?
-
The media type of the contents; null when the server names none.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
The contents as text; null when they are bytes in blob.
final
- uri → String
-
Where the resource lives, as the client names it.
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