getBluetoothDevices method

  1. @override
Future<List<TightBluetoothDevice>> getBluetoothDevices()
override

Lists Bluetooth devices known to the SDK.

Implementation

@override
Future<List<TightBluetoothDevice>> getBluetoothDevices() async {
  final List<Object?> list =
      await _invoke<List<Object?>>('getBluetoothDevices') ??
      const <Object?>[];
  return list
      .cast<Map<Object?, Object?>>()
      .map(TightBluetoothDevice.fromMap)
      .toList(growable: false);
}