startScanning method
void
startScanning()
Implementation
void startScanning() {
isScanning = true;
controller.cleanAll();
channel.invokeMethod("checkPermission").then((isGrantPermission) {
if (isGrantPermission) {
channel.invokeMethod("startScan");
} else {
isScanning = false;
if (onPermissionDenied != null) onPermissionDenied!();
}
});
}