DiagramFrameClock class final

Demand-driven frame time shared by path effects and custom shape overlays.

The clock runs only while the canvas has an active path animation or an extension retains a DiagramFrameClockLease. Pass it as a painter's repaint to paint every frame it runs.

Implemented types

Constructors

DiagramFrameClock({required ValueListenable<Duration> frames, required DiagramFrameClockLease acquire()})

Properties

elapsed → Duration
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquire() → DiagramFrameClockLease
Requests frames from the owner. Canvas clocks reject acquisition after unmount; releasing an earlier lease remains safe and idempotent.
addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
override
toString() → String
A string representation of this object.
inherited

Operators

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