FlutterScanFeedbackPlayer class

The standard ScanFeedbackPlayer for Flutter apps: sound and haptics.

final session = ScanSession(
  feedbackPlayer: FlutterScanFeedbackPlayer(sound: MyWavPlayer()),
);
Implemented types

Constructors

FlutterScanFeedbackPlayer({ScanSoundPlayer? sound = const SystemScanSoundPlayer(), ScanHaptics? haptics = const FlutterScanHaptics()})
Creates a player. Without sound, SystemScanSoundPlayer is used.
const

Properties

haptics → ScanHaptics?
Vibrates; null for none.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sound → ScanSoundPlayer?
Plays sounds; null for none.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play(ScanFeedbackKind kind, ScanFeedback settings) → void
Plays the feedback for kind using the channels enabled in settings.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited