Measure class

A Measure holds information about what measure to do/collect for a Task in a Study.

Inheritance
Implementers
Annotations

Constructors

Measure(MeasureType type, { String name, bool enabled: true })
Measure.fromJson(Map<String, dynamic> json)
factory

Properties

configuration ↔ Map<String, String>
A key-value map holding any application-specific configuration.
read / write
enabled ↔ bool
Whether the measure is enabled - i.e. collecting data - when the study is running. A measure is enabled as default.
read / write
name ↔ String
A printer-friendly name for this measure.
read / write
type MeasureType
The type of measure to do.
read / write
c__ ↔ String
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

adapt(Measure measure) → void
Adapt this Measure to a new value specified in measure.
addMeasureListener(MeasureListener listener) → void
Add a MeasureListener to this Measure.
getConfiguration(String key) → String
Get value from the configuration for this measure.
hasChanged() → Future<void>
removeMeasureListener(MeasureListener listener) → void
Remove a MeasureListener to this Measure.
restore() → void
Restore this Measure to its original value before adapt was called. [...]
setConfiguration(String key String configuration) → void
Add a key-value pair as configuration for this measure.
toJson() → Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
registerFromJson(Function fromJsonFunction) → dynamic
Use this method to register a custom fromJson function for this class in the FromJsonFactory.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

fromJsonFunction → Function
read-only