sampleDevice static method

BluetoothDevice sampleDevice({
  1. String address = 'AA:BB:CC:DD:EE:FF',
  2. String name = 'Test Device',
})

A ready-made sample device for convenience.

Implementation

static BluetoothDevice sampleDevice({
  String address = 'AA:BB:CC:DD:EE:FF',
  String name = 'Test Device',
}) => BluetoothDevice(
  id: DeviceId.address(address),
  name: name,
  type: BluetoothDeviceType.classic,
  bondState: BluetoothBondState.bonded,
);