McpMetadataKey class
Key con metadata completa para MCP Contiene toda la información necesaria para registro y eventos
Constructors
-
McpMetadataKey({required String id, required McpWidgetType widgetType, String? description, String? screen, List<
String> ? tags, Map<String, dynamic> ? customMetadata}) -
const
-
McpMetadataKey.fromJson(Map<
String, dynamic> json) -
Crear desde JSON (útil para testing/mocking)
factory
Properties
-
capabilities
→ List<
String> -
Obtener capabilities (acciones disponibles) basadas en el tipo de widget
no setter
-
customMetadata
→ Map<
String, dynamic> ? -
Metadata adicional customizada
final
- description → String?
-
Descripción legible del widget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identificador único del widget (usado para acciones remotas)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screen → String?
-
Contexto/pantalla donde se encuentra
final
-
Tags adicionales para búsqueda/filtrado
final
- widgetType → McpWidgetType
-
Tipo de widget
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convertir a JSON (usa formato MCP por defecto)
-
toMcpFormat(
) → Map< String, dynamic> - Convertir a formato esperado por MCP Server Rust Compatible con example_widgets.json format
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited