FrameCallback typedef Null safety

FrameCallback = void Function(Duration timeStamp)

Signature for frame-related callbacks from the scheduler.

The timeStamp is the number of milliseconds since the beginning of the scheduler's epoch. Use timeStamp to determine how far to advance animation timelines so that all the animations in the system are synchronized to a common time base.


typedef FrameCallback = void Function(Duration timeStamp);