previous method

Future<void> previous({
  1. Duration restartThreshold = const Duration(seconds: 3),
})

Implementation

Future<void> previous({Duration restartThreshold = const Duration(seconds: 3)}) async {
  if (value.position > restartThreshold) {
    await seek(Duration.zero);
    return;
  }
  await jumpTo(_previousIndex());
}