inspection library

Debug and tooling introspection for motor playback.

This surface exists for inspectors, debug overlays, and tests. Everything here is @experimental: it may change in minor releases, unlike the core package:motor/motor.dart API.

Snapshots (PlaybackSnapshot, TrackPlayback, PlaybackPlan) are read-only. The TrackControllerInspection extension additionally exposes two hooks that do change playback of a single controller: TrackControllerInspection.playbackSpeed and TrackControllerInspection.motionOverride.

While a tool is attached, controllers keep more for TrackController.scrubTo:

  • Plans a track has since been redirected away from, so scrubbing back shows them. They are only for viewing: playback, including TrackController.resume from such a time, always continues each track's current plan, holding its start until the timeline reaches it.
  • About a thousand steps of a looping plan that cannot repeat exactly, such as every looping phase timeline, instead of its two most recent cycles.

Classes

MotorInspectionObserver
Observes the lifecycle of controllers created while it is attached.
MotorInspectionRegistry
The opt-in bridge between Motor controllers and external inspection tools.
MotorInspectionScope
Decides how inspection tools show the controllers that motor's builders create below it.
MotorInspectionSubscription
A removable attachment to MotorInspectionRegistry.
PlaybackPlan
A plan submitted to a TrackController with TrackController.animate.
PlaybackSegment
One resolved step of a TrackPlayback.
PlaybackSnapshot
A point-in-time view of everything a TrackController is playing.
TrackPlayback
One track's live, read-only playback state.

Extensions

MotionControllerInspection on MotionController<T>
Inspection settings for MotionController, forwarded to the track controller inside it.
TrackControllerInspection on TrackController
Read-only playback inspection for TrackController.