ScannerCommand constructor

ScannerCommand(
  1. String code, {
  2. List<String> parameters = const [],
  3. bool sendFeedback = true,
  4. bool? ledFeedback,
  5. bool? buzzerFeedback,
  6. bool? vibrationFeedback,
})

Constructs a ScannerCommand with the given command code and optional feedback settings.

  • code: The command code to be sent to the scanner.
  • parameters: Optional parameters to be included with the command.
  • ledFeedback: Optional feedback to indicate LED usage during command execution.
  • buzzerFeedback: Optional feedback to indicate buzzer usage during command execution.
  • vibrationFeedback: Optional feedback to indicate vibration usage during command execution.

Implementation

ScannerCommand(
  super.code, {
  super.parameters,
  super.sendFeedback,
  super.ledFeedback,
  super.buzzerFeedback,
  super.vibrationFeedback,
});