delay function for any action
delay(Duration duration, Function function) { return Future.delayed( duration, () { function(); }, ); }