you can use Timer for that.
Timer timer = new Timer(new Duration(seconds: 5), () {
debugPrint("Print after 5 seconds");
});
EDITED
as pointed by @MoeinPorkamel in comments. Above answer is more like setTimeout instead of setInterval! Those who need interval, you can use:
// runs every 1 second
Timer.periodic(new Duration(seconds: 1), (timer) {
debugPrint(timer.tick.toString());
});
To use Timer you need to import 'dart:async';