getScannedResults method

Future<List<WiFiAccessPoint>> getScannedResults()

Get scanned access point.

This are cached accesss points from most recently performed scan.

Should call canGetScannedResults as a check before calling this method.

Implementation

Future<List<WiFiAccessPoint>> getScannedResults() async {
  final scannedResults =
      await _channel.invokeListMethod<Map>("getScannedResults");
  return scannedResults!
      .map((map) => WiFiAccessPoint._fromMap(map))
      .toList(growable: false);
}