RenderPipeline class
Manages the per-frame update cycle for ThreeDScene-based rendering.
RenderPipeline hooks into Flutter's Ticker (via TickerProvider) and calls registered update callbacks every frame at the correct time in the rendering pipeline.
Widgets that need per-frame simulation (physics springs, auto-rotation, etc.) register themselves via addCallback and deregister via removeCallback.
Lifecycle
- Create inside a State that mixes TickerProviderStateMixin.
- Call start when the widget mounts.
- Call stop / dispose in State.dispose.
Constructors
- RenderPipeline({required TickerProvider vsync})
Properties
- elapsed → Duration
-
Total elapsed time since start was first called.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRunning → bool
-
Whether the pipeline is currently running.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCallback(
FrameCallback callback) → void -
Registers
callbackto be called once per frame with FrameInfo. -
dispose(
) → void - Stops and releases the ticker. Call from State.dispose.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCallback(
FrameCallback callback) → void -
Deregisters
callback. -
start(
) → void - Starts the pipeline. Safe to call multiple times.
-
stop(
) → void - Stops the pipeline without disposing it.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited