onExternalError method

void onExternalError(
  1. Object externalInterface,
  2. Request request,
  3. Object error,
  4. StackTrace stackTrace,
)

Called when an error is thrown by ExternalInterface for the given request.

Implementation

void onExternalError(
  Object externalInterface,
  Request request,
  Object error,
  StackTrace stackTrace,
) {
  logger.e(
    'Error occurred while requesting "${request.runtimeType}" '
    'for "${externalInterface.runtimeType}"',
    error: error,
    stackTrace: stackTrace,
  );
}