simulateAsyncCrash method

Future<void> simulateAsyncCrash()

Implementation

Future<void> simulateAsyncCrash() async {
  await Future.delayed(const Duration(seconds: 1));
  throw const HttpException('Intentional async crash triggered!');
}