PriceText constructor

const PriceText({
  1. Key? key,
  2. required String price,
  3. Currency currency = Currency.tl,
  4. String? customCurrencySymbol,
  5. CurrencyPosition currencyPosition = CurrencyPosition.before,
  6. double? currencySpacing,
  7. bool showDecimals = true,
  8. int decimalPlaces = 2,
  9. String thousandsSeparator = ',',
  10. String decimalSeparator = '.',
  11. bool? isProfit,
  12. bool compactFormat = false,
  13. int? maxLength,
  14. Color? color,
  15. double? fontSize,
  16. FontWeight? fontWeight,
  17. String? fontFamily,
  18. TextStyle? textStyle,
  19. int? maxLines = 1,
  20. TextAlign? textAlign = TextAlign.left,
  21. TextOverflow? overflow,
  22. Color? profitColor,
  23. Color? lossColor,
  24. String profitPrefix = '+ ',
  25. String lossPrefix = '- ',
  26. bool showProfitLossColors = true,
  27. bool? enableSecurity,
})

Implementation

const PriceText({
  super.key,
  required this.price,
  // ============== Currency Configuration ==============
  this.currency = Currency.tl,
  this.customCurrencySymbol,
  this.currencyPosition = CurrencyPosition.before,
  this.currencySpacing,
  // ============== Format Configuration ==============
  this.showDecimals = true,
  this.decimalPlaces = 2,
  this.thousandsSeparator = ',',
  this.decimalSeparator = '.',
  this.isProfit,
  this.compactFormat = false,
  this.maxLength,
  // ============== Style Configuration ==============
  this.color,
  this.fontSize,
  this.fontWeight,
  this.fontFamily,
  this.textStyle,
  // ============== Layout Configuration ==============
  this.maxLines = 1,
  this.textAlign = TextAlign.left,
  this.overflow,
  // ============== Profit/Loss Styling ==============
  this.profitColor,
  this.lossColor,
  this.profitPrefix = '+ ',
  this.lossPrefix = '- ',
  this.showProfitLossColors = true,
  // ============== Security ==============
  this.enableSecurity,
});