TextRecordSerializer class final

Serializes a v2 Record as a plain human-readable text event frame.

This is the fully plain text representation used for file artifacts: no ANSI or OSC sequences are generated. layout controls embedded newline representation. Every frame ends with one newline.

Implemented types

Constructors

TextRecordSerializer({FileTextLayout layout = FileTextLayout.singleLine})
Creates a plain text serializer using layout.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
layout → FileTextLayout
Whether embedded newlines are escaped or use visual continuations.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode(Record record) → String
Encodes record as one newline-terminated plain-text event frame.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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