BaseResource class abstract
Base class for all MCP resources.
Constructors
Properties
- description → String?
-
Optional description of what this resource provides.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String?
-
Optional MIME type of the resource content.
no setter
- name → String
-
Human-readable name for this resource.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → String
-
Unique URI for this resource.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
Uri requestUri) → FutureOr< ReadResourceResult> - Read the resource content.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited