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.

Constructors

SentryBrowser.new({String? name, String? version, Map<String, dynamic>? unknown})
Creates an instance of SentryBrowser.
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.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknown Map<String, dynamic>?
final
version String?
Human readable application version, as it appears on the platform.
getter/setter pair

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