Comparison
class Comparison(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false) : PriceVariant(source)
Comparison prices are used alongside an instance of a leading price. They are typically smaller than the leading price. This variant enforces PriceSizeStyle.FixedSize.
Parameters
style
PriceVariantStyle defines the comparison style variation.
negativePrice
Adds a minus sign at the beginning of the price.
Constructors
Link copied to clipboard
constructor(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false)