setTimeout function

Timer setTimeout(
  1. Function fn,
  2. int duration
)

Implementation

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