WeatherMeasure class

Specify the configuration on how to collect weather data. Needs an apiKey for the OpenWeatherMap API.

Inheritance
Annotations

Constructors

WeatherMeasure(MeasureType type, {dynamic name, dynamic enabled, String apiKey})
WeatherMeasure.fromJson(Map<String, dynamic> json)
factory

Properties

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

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

fromJsonFunction Function
read-only, override