AplService class
Service for querying the Approved Product List (APL) from FirebaseFirestore.
The APL collection contains WIC-eligible products with their UPC codes, names, categories, and eligibility status. This service provides methods to look up products and find substitutes within the same category.
Constructors
- AplService.new({FirebaseFirestore? db})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findByUpc(
String upc) → Future< Map< String, dynamic> ?> - Looks up a product by its Universal Product Code (UPC).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
substitutes(
String category, {int max = 3}) → Future< List< Map< >String, dynamic> > - Finds WIC-eligible substitute products in the same category.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited