FeedbackMetadata class

Device and application metadata collected at feedback submission time.

Use FeedbackMetadataCollector to gather this automatically, or construct it manually with known values.

Annotations

Constructors

FeedbackMetadata({String? osName, String? osVersion, String? deviceModel, String? appName, String? buildNumber, Map<String, String> extra = const {}})
const
FeedbackMetadata.fromJson(Map<String, dynamic> json)
Deserialises from a JSON map produced by toJson.
factory

Properties

appName String?
Human-readable application name.
final
buildNumber String?
Application build number.
final
deviceModel String?
Device model identifier, e.g. 'Pixel 7', 'iPhone 15'.
final
extra Map<String, String>
Arbitrary key-value pairs for custom metadata.
final
hashCode int
The hash code for this object.
no setteroverride
osName String?
Operating system name, e.g. 'android', 'ios', 'web'.
final
osVersion String?
OS version string, e.g. '14.5'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises to a JSON-compatible map. Omits null / empty fields.
toString() String
A string representation of this object.
inherited

Operators

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