Product class
Constructors
-
Product({String? name, String? barcode, double? nutriScore, String? iconFileName, String? nutriGrade, Nutrients? nutrients, List? images, List<Tag>? tags, List<Tag>? topTags, List<IngredientElement>? ingredientsTags, String? ingredientText, String? claimsInfo, String? allergensInfo, String? containsInfo, String? warningsInfo, String? netWeightUnit, dynamic novaScaleRating, dynamic hsrRating, double? netWeight, double? servingSize, String? servingSizeUnit, double? truthinServingSize, String? truthinServingSizeUnit, List? productReviewRatings, bool isFavorite = false, double? matchMeter, List<Tag>? ingredientTags, List<Tag>? valueTags, List<Tag>? goalTags, double? mfgServingSize, double? noOfServings, String? mmServingSizes, double? natfirstRating, String? displayNetWeight, String? displayMfgServingSize, List<IngredientItem>? ingredientItem, String? status, List<String>? categories, String? l3Category, HealthTagMetric? healthTagMetric, List<AllergenTag>? allergenTags, HealthQna? healthQNA, bool enableHCAlerts = false})
-
-
Product.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
copyWith({String? name, String? barcode, double? nutriScore, String? iconFileName, String? nutriGrade, Nutrients? nutrients, List<IngredientElement>? ingredientsTags, List? images, List<Tag>? tags, List<Tag>? topTags, String? netWeightUnit, String? ingredientText, dynamic novaScaleRating, dynamic hsrRating, double? netWeight, double? servingSize, String? servingSizeUnit, double? truthinServingSize, String? truthinServingSizeUnit, List? productReviewRatings, bool? isFavorite, double? matchMeter, List<Tag>? ingredientTags, List<Tag>? valueTags, List<Tag>? goalTags, String? claimsInfo, String? allergensInfo, String? containsInfo, String? warningsInfo, double? mfgServingSize, double? noOfServings, String? mmServingSizes, String? displayNetWeight, String? displayMfgServingSize, double? natfirstRating, List<IngredientItem>? ingredientItem, List<String>? categories, String? l3Category, String? status, HealthTagMetric? healthTagMetric, List<AllergenTag>? allergenTags, HealthQna? healthQNA, bool? enableHCAlerts})
→ Product
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
inherited