FoodCandidates class
Data class that represents the results of the SDK's detection process.
Constructors
-
FoodCandidates({List<
BarcodeCandidate> ? barcodeCandidates, List<DetectedCandidate> ? detectedCandidates, List<PackagedFoodCandidate> ? packagedFoodCandidates}) - Constructs a FoodCandidates instance.
-
FoodCandidates.fromJson(Map<
String, dynamic> json) -
Constructs a FoodCandidates from a JSON map.
factory
Properties
-
barcodeCandidates
→ List<
BarcodeCandidate> ? -
The Barcode candidates if available
final
-
detectedCandidates
→ List<
DetectedCandidate> ? -
The visual candidates returned from the recognition
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
packagedFoodCandidates
→ List<
PackagedFoodCandidate> ? -
The packaged food candidates if available
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited