Regular
constructor(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false, sizeStyle: PriceSizeStyle = PriceSizeStyle.MixedSize)
Parameters
style
It indicates whether the font weight is regular FontWeight.Normal+SkapaColors.textAndIcon2 or default Emphasised with FontWeight.W700+SkapaColors.textAndIcon1.
negativePrice
Adds a minus sign at the beginning of the price. Using negative prices forces PriceSizeStyle.FixedSize and also not compatible with BTI.
sizeStyle
The price size style variations to be displayed. The default value is PriceSizeStyle.MixedSize.
Deprecated (with error)
This constructor is deprecated, use the main constructor instead
Replace with
Regular(style = if (subtle) PriceVariantStyle.Subtle else PriceVariantStyle.Emphasised /* TODO: Check PriceVariantStyle combinations */, negativePrice = negativePrice)Content copied to clipboard