set method

void set({
  1. bool? led,
  2. bool? buzzer,
  3. bool? vibration,
})

Sets the feedback preferences for the scanner.

Allows updating the individual feedback settings for LED, buzzer, and vibration. These settings are applied to the commands sent to the scanner to adjust scanner feedback behavior.

  • led: Set this to true to enable LED feedback, or false to disable it. If null, the setting remains unchanged.
  • buzzer: Set this to true to enable buzzer feedback, or false to disable it. If null, the setting remains unchanged.
  • vibration: Set this to true to enable vibration feedback, or false to disable it. If null, the setting remains unchanged.

Implementation

void set({
  bool? led,
  bool? buzzer,
  bool? vibration,
}) {
  if (led != null) _led = led;
  if (buzzer != null) _buzzer = buzzer;
  if (vibration != null) _vibration = vibration;
}