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 =>
    userAccelerometerEventStream(samplingPeriod: samplingPeriod).map(
        (event) => Measurement.fromData(
            Acceleration(x: event.x, y: event.y, z: event.z)));