set method
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 totrue
to enable LED feedback, orfalse
to disable it. Ifnull
, the setting remains unchanged.buzzer
: Set this totrue
to enable buzzer feedback, orfalse
to disable it. Ifnull
, the setting remains unchanged.vibration
: Set this totrue
to enable vibration feedback, orfalse
to disable it. Ifnull
, 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;
}