FrameCallback typedef Null safety

void FrameCallback (
  1. 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.

Implementation

typedef FrameCallback = void Function(Duration timeStamp);