cancelScan method
Cancel an in-progress Bluetooth scan. Returns true if a scan was cancelled, false if no scan was in progress.
Implementation
@override
Future<bool> cancelScan() async {
final result = await methodChannel.invokeMethod<bool>('cancelScan');
return result ?? false;
}