onSamplingEnd method

  1. @override
void onSamplingEnd()
override

Handler called when sampling period ends.

Implementation

@override
void onSamplingEnd() {
  FlutterBluePlus.stopScan();
  if (_data is Bluetooth) (_data as Bluetooth).endScan = DateTime.now();
}