stream property

  1. @override
Stream<Measurement> get stream
override

The stream of Measurement objects for this StreamProbe. Must be implemented by sub-classes.

Implementation

@override
Stream<Measurement> get stream => pedometer.Pedometer.stepCountStream.map(
    (pedometer.StepCount count) => Measurement.fromData(
        StepCount(steps: count.steps),
        count.timeStamp.microsecondsSinceEpoch));