onSamplingData method

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

Handler for handling onData events from the buffering stream.

Implementation

@override
void onSamplingData(event) {
  if (event is List<ScanResult>) {
    (_datum as BluetoothDatum).addBluetoothDevicesFromScanResults(event);
  }
}