delayed function

void delayed(
  1. int milliseconds,
  2. dynamic callback()
)

延时执行

Implementation

void delayed(int milliseconds, Function() callback) {
  Future.delayed(Duration(milliseconds: milliseconds), callback);
}