microsecondsDelay method
Causes the current Dart async function to wait for a given number of microseconds.
By employing Future.delayed, this method introduces a delay in the execution flow for a duration specified in microseconds. The delay duration is determined by the integer value of the calling object.
Note: The actual resolution of the delay might not be precise to the microsecond due to the limitations of the underlying system's timer resolution.
Example:
await 100000.microsecondsDelay(); // Waits for 100,000 microseconds.
Implementation
Future<void> microsecondsDelay() => Future.delayed(microsecondsDuration);