BluetoothDevice constructor

BluetoothDevice({
  1. required String address,
  2. String? name,
  3. BluetoothDeviceType? type,
  4. BluetoothBondState? bondState,
  5. bool isConnected = false,
})

BluetoothDevice constructor

Implementation

BluetoothDevice({required this.address, this.name, BluetoothDeviceType? type, BluetoothBondState? bondState, this.isConnected = false}) : type = type ?? BluetoothDeviceType.unknown, bondState = bondState ?? BluetoothBondState.none;