startScan method
When scanning Bluetooth devices, it will first obtain the open status of Bluetooth, and only when the permission is allowed and the Bluetooth is turned on can start normal scanning.
Implementation
Future<bool> startScan(int scanPeriod) {
return _platform.startScan(scanPeriod);
}