BarcodeSelectionFeedback class
Determines what feedback (vibration, sound) should be emitted when reading barcodes. The feedback is specified for each BarcodeSelection instance separately and can be changed through the BarcodeSelection.feedback property by either modifying an existing instance of this class, or by assigning a new one.As of now, this class only allows to configure the feedback that gets emitted when a barcode is selected, through the BarcodeSelectionFeedback.selection property.See documentation on the BarcodeSelection.feedback property for usage samples.
Added in version 6.10.0
- Inheritance
-
- Object
- ChangeNotifier
- BarcodeSelectionFeedback
Constructors
- BarcodeSelectionFeedback()
- Creates new default barcode selection feedback instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection ↔ Feedback
-
A
Feedbackfor a selection event.getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultFeedback → BarcodeSelectionFeedback
-
Returns a barcode selection feedback with default configuration:
no setter