startScan static method

Future<bool> startScan()

Implementation

static Future<bool> startScan() async {
  try {
    final result = await _channel.invokeMethod('startScan');
    return result == true;
  } catch (e) {
    print('Error starting scan: $e');
    return false;
  }
}