BugsnagMetadata class
Constructors
- BugsnagMetadata([MetadataMap map = const {}])
-
BugsnagMetadata.fromJson(Map<
String, dynamic> json)
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMetadata(
String section, MetadataSection metadata) → void -
clearMetadata(
String section, [String? key]) → void -
getMetadata(
String section) → MetadataSection? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic -
toMap(
) → MetadataMap -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
sanitizedMap(
Map< String, dynamic> map) → MetadataSection -
Create a sanitized deep-copy of
map
where all of the values are BugsnagMetadata compatible.String
,num
, andbool
values remain as-is, while nestedMap
andIterable
values are also sanitized. All other values are converted usingtoString()
.