autoRecorderStream property

Stream<SamplePoint?> autoRecorderStream

Stream that emits SamplePoints after startRecord is activated.

Implementation

static Stream<SamplePoint?> get autoRecorderStream =>
    _eventChannel.receiveBroadcastStream().map((dynamic e) {
      if (e != null) {
        return SamplePoint.fromMap(jsonDecode(e));
      }
    }).cast<SamplePoint?>();