McpLineFramer class final

Incremental newline framer. One framer per server connection.

Constructors

McpLineFramer()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

drain() → List<String>
Returns the text of every complete line currently buffered (without the terminating newline). Blank lines are dropped.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push(List<int> chunk) → void
Appends a freshly read chunk to the pending buffer.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

encode(String jsonText) → Uint8List
Encodes jsonText as one framed stdio message ready for the wire.