resolveError method

void resolveError(
  1. int errorCode,
  2. int requestCode, [
  3. bool? usePendingIntent
])

Displays a notification or dialog box is displayed for the returned result code if an exception can be rectified through user operations.

Implementation

void resolveError(int errorCode, int requestCode, [bool? usePendingIntent]) {
  _getEvents();

  _channel.invokeMethod("resolveError", {
    'errCode': errorCode,
    'reqCode': requestCode,
    'usePendingIntent': usePendingIntent ?? null
  });
}