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