secondsDelay method
Causes the current Dart async function to wait for a given number of seconds.
This extension method utilizes Future.delayed to introduce a delay in the execution flow. The duration of the delay is specified by the integer value of the calling object, representing the number of seconds.
Example:
await 5.secondsDelay(); // Waits for 5 seconds.
Implementation
Future<void> secondsDelay() => Future.delayed(secondsDuration);