setProgress method

dynamic setProgress(
  1. Duration progress
)

Implementation

setProgress(Duration progress) {
  progressNotifier.value = progress;
  final playIndex = getIndexByProgress(
    progress,
  );
  activeIndexNotifiter.value = playIndex;
}