Comparison

constructor(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false)

Parameters

style

PriceVariantStyle defines the comparison style variation.

negativePrice

Adds a minus sign at the beginning of the price.


constructor(strikeout: Boolean = false, regularFontWeight: Boolean = true, subtle: Boolean = true, negativePrice: Boolean = false)

Deprecated (with error)

This constructor is deprecated, use the main constructor instead. Comparison prices now forces strikeout.

Replace with

Comparison(style = if (subtle) PriceVariantStyle.Subtle else PriceVariantStyle.Emphasised /* TODO: Check PriceVariantStyle combinations */, negativePrice = negativePrice)