BleScanResult.fromMap constructor
BleScanResult.fromMap(
- Map map
Implementation
factory BleScanResult.fromMap(Map<dynamic, dynamic> map) {
final String remoteId = map[BleChannelKey.remoteId] as String? ?? '';
return BleScanResult(
device: BleDevice.fromId(
remoteId,
platformName: map[BleChannelKey.platformName] as String?,
advName: map[BleChannelKey.advName] as String?,
),
advertisementData: BleAdvertisementData.fromMap(map),
rssi: map[BleChannelKey.rssi] as int? ?? 0,
);
}