SentryBrowser class

Carries information about the browser or user agent for web-related errors.

This can either be the browser this event ocurred in, or the user agent of a web request that triggered the event.

Annotations
  • @immutable

Constructors

SentryBrowser({String? name, String? version})
Creates an instance of SentryBrowser.
const
SentryBrowser.fromJson(Map<String, dynamic> data)
Deserializes a SentryBrowser from JSON Map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Human readable application name, as it appears on the platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String?
Human readable application version, as it appears on the platform.
final

Methods

clone() SentryBrowser
copyWith({String? name, String? version}) SentryBrowser
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Produces a Map that can be serialized to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

type → const String