MetricEvent class
An app-level metric event recorded during a session.
Only persisted in Insight and Research modes. In Personal mode, the call succeeds silently but the data is dropped.
Constructors
-
MetricEvent({required String name, required int timestampMs, required dynamic value, Map<
String, String> ? tags}) -
const
-
MetricEvent.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
-
Encode the tags as a JSON string for SQLite storage.
no setter
- timestampMs → int
-
final
- value → dynamic
-
final
- valueEncoded → String
-
Encode the value as a JSON string for SQLite storage.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited