triggerUncaughtExceptionAsync static method

Future<void> triggerUncaughtExceptionAsync()

Throws an uncaught exception.

Implementation

static Future<void> triggerUncaughtExceptionAsync() async {
  await Future(() async {
    throw Exception('Embrace sample: Error in async function');
  });
}