Nutriment List Item
data class NutrimentListItem( val title: CharSequence?, val valueStr: CharSequence?, val servingValueStr: CharSequence?, val unitStr: CharSequence?, val modifierStr: CharSequence?, val displayVolumeHeader: Boolean = false)
Content copied to clipboard
Use a round value for value and servingValue parameters
Parameters
title
name of nutriment
value Str
value of nutriment per 100g
serving Value Str
value of nutriment per serving
unit Str
unit of nutriment
modifier Str
one of the following: "<", ">", or "~"
Constructors
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun NutrimentListItem(title: CharSequence, nutriment: ProductNutriments.ProductNutriment)
Content copied to clipboard
Link copied to clipboard
fun NutrimentListItem( title: CharSequence?, value: Float?, servingValue: Float?, unit: MeasurementUnit, modifier: Modifier, displayVolumeHeader: Boolean = false)
Content copied to clipboard
Link copied to clipboard
fun NutrimentListItem( title: CharSequence?, valueStr: CharSequence?, servingValueStr: CharSequence?, unitStr: CharSequence?, modifierStr: CharSequence?, displayVolumeHeader: Boolean = false)
Content copied to clipboard