ScanResult constructor

ScanResult({
  1. BluetoothDevice? device,
  2. AdvertisementData? advertisementData,
  3. int? rssi,
})

Implementation

factory ScanResult({
  BluetoothDevice? device,
  AdvertisementData? advertisementData,
  $core.int? rssi,
}) {
  final _result = create();
  if (device != null) {
    _result.device = device;
  }
  if (advertisementData != null) {
    _result.advertisementData = advertisementData;
  }
  if (rssi != null) {
    _result.rssi = rssi;
  }
  return _result;
}