addError method

Future<void> addError(
  1. Object error,
  2. StackTrace stackTrace
)

Implementation

Future<void> addError(Object error, StackTrace stackTrace) async {
  if (error is FlutterErrorDetails) {
    return await addFlutterError(error);
  }

  return await channel.invokeMethod('rumAddError', {
    'message': error.toString(),
    'stack': stackTrace.toString(),
  });
}