NutrimentListItem

data class NutrimentListItem(    val title: CharSequence?,     val valueStr: CharSequence?,     val servingValueStr: CharSequence?,     val unitStr: CharSequence?,     val modifierStr: CharSequence?,     val displayVolumeHeader: Boolean = false)

Use a round value for value and servingValue parameters

Parameters

title

name of nutriment

valueStr

value of nutriment per 100g

servingValueStr

value of nutriment per serving

unitStr

unit of nutriment

modifierStr

one of the following: "<", ">", or "~"

Constructors

Link copied to clipboard
fun NutrimentListItem(volumeHeader: Boolean)
Link copied to clipboard
fun NutrimentListItem(title: CharSequence)
Link copied to clipboard
fun NutrimentListItem(title: CharSequence, nutriment: ProductNutriments.ProductNutriment)
Link copied to clipboard
fun NutrimentListItem(    title: CharSequence?,     value: Float?,     servingValue: Float?,     unit: MeasurementUnit,     modifier: Modifier,     displayVolumeHeader: Boolean = false)
Link copied to clipboard
fun NutrimentListItem(    title: CharSequence?,     valueStr: CharSequence?,     servingValueStr: CharSequence?,     unitStr: CharSequence?,     modifierStr: CharSequence?,     displayVolumeHeader: Boolean = false)

Properties

Link copied to clipboard
val displayVolumeHeader: Boolean = false
Link copied to clipboard
val modifierStr: CharSequence?
Link copied to clipboard
val servingValueStr: CharSequence?
Link copied to clipboard
val title: CharSequence?
Link copied to clipboard
val unitStr: CharSequence?
Link copied to clipboard
val valueStr: CharSequence?

Extensions

Link copied to clipboard
fun NutrimentListItem.bold(): NutrimentListItem