AbstractDataManager class Null safety

An abstract DataManager implementation useful for extension.

Takes data from a Stream<DataPoint> and uploads these. Also supports JSON encoding via the toJsonString method.

Implemented types
Implementers

Constructors

AbstractDataManager()

Properties

controller StreamController<DataManagerEvent>
read / write
dataEndPoint DataEndPoint?
read-only
deployment MasterDeviceDeployment
The deployment using this data manager
read-only, inherited
events Stream<DataManagerEvent>
Stream of data manager events.
read-only, override
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
studyDeploymentId String
The ID of the study deployment that this manager is handling.
read-only, override
type String
The type of this data manager as enumerated in DataEndPointType.
read-only, inherited

Methods

addEvent(DataManagerEvent event) → void
close() Future
Close the data manager (e.g. closing connections).
override
initialize(String studyDeploymentId, DataEndPoint dataEndPoint, Stream<DataPoint> data) Future
Initialize the data manager by specifying the study deployment, the dataEndPoint, and the stream of data events to handle.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDataPoint(DataPoint dataPoint) → void
On each data event from the data stream, the onDataPoint handler is called.
override
onDone() → void
When the data stream closes, the onDone handler is called.
override
onError(dynamic error) → void
When an error event is send on the stream, the onError handler is called.
override
toJsonString(Object object) String
Encode object to a JSON string.
toString() String
A string representation of this object. [...]
override

Operators

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