Skip to content

Commit

Permalink
Fix type 'DeviceIdentifier' is not a subtype of type 'String'
Browse files Browse the repository at this point in the history
  • Loading branch information
a1573595 authored and chipweinberger committed Jan 24, 2024
1 parent cf4501e commit e633e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/flutter_blue_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class FlutterBluePlus {
static List<BluetoothDevice> get connectedDevices {
var copy = Map.from(_connectionStates);
copy.removeWhere((key, value) => value.connectionState == BmConnectionStateEnum.disconnected);
return copy.values.map((v) => BluetoothDevice(remoteId: DeviceIdentifier(v.remoteId))).toList();
return copy.values.map((v) => BluetoothDevice(remoteId: v.remoteId)).toList();
}

/// Retrieve a list of devices currently connected to the system
Expand Down

0 comments on commit e633e6b

Please sign in to comment.