reportCrash static method

Future<void> reportCrash(
  1. Object exception,
  2. StackTrace stack
)

Implementation

static Future<void> reportCrash(Object exception, StackTrace stack) async {
  if (IBGBuildInfo.instance.isReleaseMode && enabled) {
    await _reportUnhandledCrash(exception, stack);
  } else {
    FlutterError.dumpErrorToConsole(
      FlutterErrorDetails(stack: stack, exception: exception),
    );
  }
}