onSamplingData method
Called for each event on bufferingStream; buffers it.
Implementation
@override
void onSamplingData(event) {
if (_data is Bluetooth && event is List<ScanResult>) {
(_data as Bluetooth).addBluetoothDevicesFromScanResults(event);
}
}