InspectorModel class final

The whole resolved schedule as a plain, immutable value an inspector UI can bind to: the fps and totalFrames of the render, every animation as an InspectorMotion, every named anchor as a TimelineAnchor, and the timing warnings the resolver collected.

Built by InspectorModel.fromTimeline from a ResolvedTimeline — the value the embedder reads through the timeline probe. It is pure: no BuildContext, no widgets, no IO, and the same timeline always builds an equal model, so it is trivially testable and golden-stable. The example app's InspectorViewModel consumes it; the library itself holds no view models (the library lives in diagnostics, the top layer, so nothing depends on this).

Annotations

Constructors

InspectorModel({required int fps, required int totalFrames, required List<InspectorMotion> motions, required List<TimelineAnchor> anchors, required List<String> warnings})
Creates a model directly from its parts; prefer InspectorModel.fromTimeline.
const
InspectorModel.fromTimeline(ResolvedTimeline timeline)
Builds the model from a resolved timeline, mapping every row to an InspectorMotion and surfacing the timeline's structured anchors and warnings verbatim — the warnings are read straight off ResolvedTimeline.warnings, never parsed back from a debugTimeline table dump.
factory

Properties

anchors List<TimelineAnchor>
Every named anchor, resolved to the frame its element's timeline starts on — the "jump to anchor" targets.
final
fps int
Frames per second of the whole render.
final
hashCode int
The hash code for this object.
no setteroverride
motions List<InspectorMotion>
Every resolved animation, in timeline order (start frame, then declaration order).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalFrames int
The video's total length in frames.
final
warnings List<String>
The resolver's timing warnings, one per bounds violation; empty when every motion fits.
final

Methods

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

Operators

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