delayed static method
DO THAT:
Future.delayed(
Duration(milliseconds: milliseconds),
() => callback(),
);
Implementation
static Future<void> delayed(
int milliseconds,
VoidCallback callback,
) async {
await Future.delayed(
Duration(milliseconds: milliseconds),
() => callback(),
);
}