onSamplingData method

  1. @override
void onSamplingData(
  1. dynamic event
)
override

Handler for handling onData events from the buffering stream.

Implementation

@override
void onSamplingData(dynamic event) {
  if (event is NoiseReading) _noiseReadings.add(event);
}