Ingredient class

Inheritance

Constructors

Ingredient({int? rank, String? id, String? text, double? percent, double? percentEstimate, IngredientSpecialPropertyStatus? vegan, IngredientSpecialPropertyStatus? vegetarian, IngredientSpecialPropertyStatus? fromPalmOil, List<Ingredient>? ingredients, bool? bold = false})
Ingredient.fromJson(Map<String, dynamic> json)
factory

Properties

bold bool?
getter/setter pair
fromPalmOil IngredientSpecialPropertyStatus?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
ingredients List<Ingredient>?
getter/setter pair
percent double?
getter/setter pair
percentEstimate double?
getter/setter pair
rank int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
getter/setter pair
vegan IngredientSpecialPropertyStatus?
getter/setter pair
vegetarian IngredientSpecialPropertyStatus?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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