millisecondsDelay method
Causes the current Dart async function to wait for a given number of milliseconds.
This method provides a mechanism for delaying execution by a specific duration defined in milliseconds. It leverages Future.delayed with the duration specified by the caller's integer value.
Example:
await 500.millisecondsDelay(); // Waits for 500 milliseconds.
Implementation
Future<void> millisecondsDelay() => Future.delayed(millisecondsDuration);