TickerCallback typedef

TickerCallback = void Function(Duration elapsed)

Signature for the callback passed to the Ticker class's constructor.

The argument is the time elapsed from the frame timestamp when the ticker was last started to the current frame timestamp.

Implementation

typedef TickerCallback = void Function(Duration elapsed);