Comparison
class Comparison(strikeout: Boolean = true, regularFontWeight: Boolean = false, subtle: Boolean = false, negativePrice: Boolean = false) : PriceVariant
Comparison prices are used alongside an instance of a leading price. They are typically smaller than the leading price and can compare things like non-member prices (Normal price) or a movement from a previous price (Price strikeout).
Parameters
strikeout
It indicates whether the text style is strikeout TextDecoration.LineThrough or not TextDecoration.None.
regularFontWeight
It indicates whether the font weight is regular FontWeight.Normal or default FontWeight.W700.
subtle
It enforces the price to use SkapaColors.textAndIcon2. The default color is SkapaColors.textAndIcon1.
negativePrice
Adds a minus sign at the beginning of the price. Using negative prices forces PriceSizeStyle.SingleSize and also not compatible with BTI.