onTime method

void onTime(
  1. int? position
)

Override this method to get update when playhead moves. This method fires every second with position as seconds.

Implementation

void onTime(int? position) {/* user implementation */}