simulateDelay method

Future<void> simulateDelay()

Simulates a network delay by waiting for the default delay duration.

Returns:

  • A Future that completes after the specified delay duration.

Implementation

Future<void> simulateDelay() async {
  await Future.delayed(Duration(milliseconds: _defaultDelay));
}