SlashedPriceText constructor
const
SlashedPriceText({
- Key? key,
- required String price,
- Currency currency = Currency.tl,
- String? customCurrencySymbol,
- CurrencyPosition currencyPosition = CurrencyPosition.before,
- double? currencySpacing,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- TextStyle? textStyle,
- Color? decorationColor,
- double? decorationThickness,
- TextDecorationStyle? decorationStyle,
- int? maxLines = 1,
- TextAlign? textAlign,
- bool showDecimals = true,
- int decimalPlaces = 2,
- String thousandsSeparator = ',',
- 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,
});