BarcodeStatus class

Current status of RawBarcodeView

Constructors

BarcodeStatus({required bool hasCameraPermission, required List<CameraFacing> availableCameras, required bool hasFlash, required CameraFacing cameraFacing, required bool cameraEnabled, required bool flashEnabled, required bool scanEnabled})
const

Properties

availableCameras List<CameraFacing>
Available hardware camera devices
final
cameraEnabled bool
Camera currently enabled
final
cameraFacing CameraFacing
Current camera facing
final
flashEnabled bool
Flash currently enabled
final
hasCameraPermission bool
Camera permission allowed to application
final
hasFlash bool
Flash hardware feature available
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanEnabled bool
Barcode scan currently running
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonObject
Converts this instance into a json object map. E.g. JsonObject toJson() => {'name': name, 'age': age};
toString() String
Default toString implementation: E.g. Foo(name: Ugo, age: 37)
inherited

Operators

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

Static Methods

fromJson(JsonObject json) BarcodeStatus