stopResourceWithErrorInfo method

void stopResourceWithErrorInfo(
  1. String key,
  2. String message,
  3. String type, [
  4. Map<String, Object?> attributes = const {},
])

Notifies that the Resource identified by key stopped being loaded with the supplied message. You can optionally supply custom attributes to attach to this Resource.

Implementation

void stopResourceWithErrorInfo(String key, String message, String type,
    [Map<String, Object?> attributes = const {}]) {
  wrap('rum.stopResourceWithErrorInfo', logger, attributes, () {
    return _platform.stopResourceWithErrorInfo(
        key, message, type, attributes);
  });
}