Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- part of flutter_bluetooth_serial;
- class BluetoothDiscoveryResult {
- final BluetoothDevice device;
- final int rssi;
- BluetoothDiscoveryResult({
- required this.device,
- this.rssi = 0,
- });
- factory BluetoothDiscoveryResult.fromMap(Map map) {
- return BluetoothDiscoveryResult(
- device: BluetoothDevice.fromMap(map),
- rssi: map['rssi'] ?? 0,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement