cron 0.2.4 cron: ^0.2.4 copied to clipboard
A time-based job scheduler similar to cron. Run tasks periodically at fixed times or intervals.
import 'package:cron/cron.dart';
Future<void> main() async {
final cron = Cron()
..schedule(Schedule.parse('*/6 * * * * *'), () {
print(DateTime.now());
});
await Future.delayed(Duration(seconds: 20));
await cron.close();
}