BarcodeScannerWidgetController class
Controller used to control the scanner widget
Constructors
- BarcodeScannerWidgetController([VoidCallback? onScannersConfigured])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTorchOn → bool
-
Whether the device has a torch that is on
no setter
- onScannersConfigured ↔ VoidCallback?
-
Called when all passed scanners have been configured
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportsSwitchingCamera
→ Future<
bool> -
Whether the device can switch between cameras (for example front vs back)
no setter
-
supportsSwitchingTorch
→ Future<
bool> -
Whether the device can switch torch on/off
no setter
Methods
-
dispose(
) → void - Call this to dispose the controller
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Call this to pause the scanners
-
start(
) → void - Call this to (re-)start the scanners
-
supportsScanner<
T extends BarcodeScanner> () → bool - Whether the scanner type is supported
-
toggleCamera(
) → Future< void> - Switch between cameras (if supported. see supportsSwitchingCamera)
-
toggleTorch(
) → Future< void> - Switch the torch on/off (see isTorchOn for current state)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited