reportError static method

Future<void> reportError({
  1. String? message,
  2. AppMetricaErrorDescription? errorDescription,
})

Sends an error message message with the description errorDescription. If there is no errorDescription description, the current stacktrace will be automatically added.

Implementation

static Future<void> reportError(
    {String? message, AppMetricaErrorDescription? errorDescription}) =>
    _appMetrica.reportError(
        errorDescription.tryToAddCurrentTrace().toPigeon(), message);