ScanResultModel.fromProto constructor

ScanResultModel.fromProto(
  1. BmScanAdvertisement p
)

Implementation

ScanResultModel.fromProto(BmScanAdvertisement p)
    : device = BluetoothDevice(remoteId: p.remoteId),
      advertisementData = AdvertisementData.fromProto(p),
      rssi = p.rssi,
      timeStamp = DateTime.now();