feedback property
Instance of BarcodeSelectionFeedback that is used by barcode selection to notify users about the selection of a barcode.
The default instance of the Feedback will have the sound enabled but no vibration. A default click tone will be used for the sound.
To change the feedback emitted, the BarcodeSelectionFeedback can be modified as shown below, or a new one can be assigned.
var barcodeSelection = ...;
barcodeSelection.feedback.selection = Feedback(null, Sound.defaultSound);
Added in version 6.10.0
Implementation
BarcodeSelectionFeedback get feedback => _feedback;
Instance of BarcodeSelectionFeedback that is used by barcode selection to notify users about the selection of a barcode.
The default instance of the Feedback will have the sound enabled but no vibration. A default click tone will be used for the sound.
To change the feedback emitted, the BarcodeSelectionFeedback can be modified as shown below, or a new one can be assigned.
var barcodeSelection = ...;
barcodeSelection.feedback.selection = Feedback(null, Sound.defaultSound);
Added in version 6.10.0
Implementation
set feedback(BarcodeSelectionFeedback newValue) {
_feedback.removeListener(_updateFeedbackHandler);
_feedback = newValue;
_feedback.addListener(_updateFeedbackHandler);
_controller.updateFeedback();
}