waitToDo static method

dynamic waitToDo(
  1. int mili,
  2. dynamic callback()
)

Implementation

static waitToDo(int mili , Function() callback) {
  // Log.i("waitToDo - waitToDo() - start" );
  Timer(Duration(milliseconds: mili), () {
    //  Log.i("waitToDo - waitToDo() - end" );
    callback();
  });
}