Timer setTimeout(Function fn, int duration) { return Timer(Duration(milliseconds: duration), fn as void Function()); }