ProgramRenderSnapshot class final
One deterministic render snapshot captured by ProgramRenderRecorder.
Constructors
-
ProgramRenderSnapshot({required int sequence, required int renderGeneration, required Object view, required TerminalRenderFrame frame, required DegradationLevel degradationLevel, required Duration renderDuration, int? width, int? height, TerminalNativeFrame? nativeFrame, TerminalNativeDeltaFrame? nativeDelta, TerminalNativeCellDeltaFrame? nativeCellDelta, List<
TerminalNativeSpanDelta> ? nativeSpanDelta}) -
Creates a render snapshot.
const
-
ProgramRenderSnapshot.fromJson(Map<
Object?, Object?> json) -
Rebuilds a snapshot from serialized JSON data.
factory
Properties
- changeSummary → ProgramRenderChangeSummary
-
Aggregated native-change summary for this render.
no setter
- degradationLevel → DegradationLevel
-
Active degradation level for this render.
final
- frame → TerminalRenderFrame
-
Parsed string-frame inspection for this render.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Terminal height, when known.
final
-
lines
→ List<
String> -
Plain-text lines extracted from frame.
no setter
- nativeCellDelta → TerminalNativeCellDeltaFrame?
-
Native changed-cell delta captured from the renderer, when available.
final
- nativeDelta → TerminalNativeDeltaFrame?
-
Native dirty-line delta captured from the renderer, when available.
final
- nativeFrame → TerminalNativeFrame?
-
Native frame snapshot captured from the renderer, when available.
final
-
nativeSpanDelta
→ List<
TerminalNativeSpanDelta> ? -
Span-oriented delta grouped from changed cells, when available.
final
- renderDuration → Duration
-
Render duration measured by the runtime.
final
- renderGeneration → int
-
Monotonic render generation from the runtime.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequence → int
-
Monotonic snapshot sequence local to one recorder instance.
final
- view → Object
-
Original view object emitted by the program.
final
- width → int?
-
Terminal width, when known.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Converts this snapshot into a serialization-friendly map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited