Counter class
Data object to store measurement for a performance counter. This object is used by CachedCounters to store counters.
Constructors
- Counter(String name, CounterType type)
- Creates a instance of the data obejct
-
Counter.fromJson(Map<
String, dynamic> json) -
factory
Properties
- average ↔ double?
-
The average value
read / write
- count ↔ int?
-
The total count
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- last ↔ int?
-
The last recorded value
read / write
- max ↔ int?
-
The maximum value
read / write
- min ↔ int?
-
The minimum value
read / write
- name ↔ String
-
The counter unique name
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- time ↔ DateTime?
-
The recorded timestamp
read / write
- type ↔ CounterType
-
The counter type that defines measurement algorithm
read / write
Methods
-
fromJson(
Map< String, dynamic> json) → void -
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