delayedAction function

void delayedAction(
  1. int milliseconds,
  2. void voidCallback()
)

Implementation

void delayedAction(int milliseconds, void Function() voidCallback) {
  Future.delayed(const Duration(milliseconds: 100), voidCallback);
}