SlashedPriceText constructor

const SlashedPriceText({
  1. Key? key,
  2. required String price,
  3. Currency currency = Currency.tl,
  4. String? customCurrencySymbol,
  5. CurrencyPosition currencyPosition = CurrencyPosition.before,
  6. double? currencySpacing,
  7. Color? color,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. String? fontFamily,
  11. TextStyle? textStyle,
  12. Color? decorationColor,
  13. double? decorationThickness,
  14. TextDecorationStyle? decorationStyle,
  15. int? maxLines = 1,
  16. TextAlign? textAlign,
  17. bool showDecimals = true,
  18. int decimalPlaces = 2,
  19. String thousandsSeparator = ',',
  20. bool? enableSecurity,
})

Implementation

const SlashedPriceText({
  super.key,
  required this.price,
  this.currency = Currency.tl,
  this.customCurrencySymbol,
  this.currencyPosition = CurrencyPosition.before,
  this.currencySpacing,
  this.color,
  this.fontSize,
  this.fontWeight,
  this.fontFamily,
  this.textStyle,
  this.decorationColor,
  this.decorationThickness,
  this.decorationStyle,
  this.maxLines = 1,
  this.textAlign,
  this.showDecimals = true,
  this.decimalPlaces = 2,
  this.thousandsSeparator = ',',
  this.enableSecurity,
});