CameraConfiguration class
Configuration container for the device camera. All values here are hints to the underlying implementation.
This data class contains toMap/fromMap methods that return a map that is safe to use in platform channels (or state restoration)
- Annotations
Constructors
- CameraConfiguration({required CameraResolution resolution, required int frameRate, required BarcodeDetectionMode mode, required CameraType type})
-
const
-
CameraConfiguration.fromMap(Map<
String, dynamic> map) -
factory
Properties
- frameRate → int
-
The requested frame rate
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode → BarcodeDetectionMode
-
The detection mode of the scanner
final
- resolution → CameraResolution
-
The requested camera resolution (higher could mean slower scans)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CameraType
-
The camera type to use
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override