CalendarMeasure class Null safety

Inheritance
Annotations

Constructors

CalendarMeasure({required String type, String? name, String? description, dynamic enabled = true, Duration past = const Duration(days: DEFAULT_NUMBER_OF_DAYS), Duration future = const Duration(days: DEFAULT_NUMBER_OF_DAYS)})
CalendarMeasure.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
configuration Map<String, String>
A key-value map holding any application-specific configuration.
read / write, inherited
dataType DataType
The type of measure to do as a DataType.
@JsonKey(ignore: true), read-only, inherited
description String?
A longer description of this measure.
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
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
read-only, override
future Duration
The time duration ahead in time to collect calendar events.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
jsonType String
Return the $type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
read-only, inherited
name String?
A printer-friendly name for this measure.
read / write, inherited
past Duration
The time duration back in time to collect calendar events.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
studyDeploymentId String?
The study deployment id that this measure is part of. Set on runtime.
@JsonKey(ignore: true), read / write, inherited
type String
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
Call this method when this measure has changed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
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. [...]
inherited

Operators

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

Constants

DEFAULT_NUMBER_OF_DAYS → const int
1