ProductDialogHelper class

Dialog helper for product barcode search

Constructors

ProductDialogHelper({required String barcode, required BuildContext context, required LocalDatabase localDatabase})

Properties

barcode → String
final
context → BuildContext
final
hashCode → int
The hash code for this object.
no setterinherited
localDatabase → LocalDatabase
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
openBestChoice() → Future<FetchedProduct>
openError(FetchedProduct fetchedProduct) → void
Opens an error dialog; to be used only if the status is not ok.
openUniqueProductSearch() → Future<FetchedProduct>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

getErrorMessage(String message) → Widget

Constants

unknownSvgEnvironmentalScore → const String
unknownSvgNova → const String
unknownSvgNutriscore → const String