ClientInfo class

Client information (2025-03-26 compliant).

Spec 2025-11-25+ adds description to the Implementation object (shared by clientInfo / serverInfo) — a human-readable summary of the implementation. Emitted only when set; older peers ignore the extra key (additive).

Annotations
  • @immutable

Constructors

ClientInfo({required String name, required String version, String? description, Map<String, dynamic>? capabilities, Map<String, dynamic>? metadata})
const
ClientInfo.fromJson(Map<String, dynamic> json)
factory

Properties

capabilities Map<String, dynamic>?
final
description String?
Spec 2025-11-25+: human-readable description of this implementation.
final
hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited