PriceText constructor
const
PriceText({
- Key? key,
- required String price,
- Currency currency = Currency.tl,
- String? customCurrencySymbol,
- CurrencyPosition currencyPosition = CurrencyPosition.before,
- double? currencySpacing,
- bool showDecimals = true,
- int decimalPlaces = 2,
- String thousandsSeparator = ',',
- String decimalSeparator = '.',
- bool? isProfit,
- bool compactFormat = false,
- int? maxLength,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- TextStyle? textStyle,
- int? maxLines = 1,
- TextAlign? textAlign = TextAlign.left,
- TextOverflow? overflow,
- Color? profitColor,
- Color? lossColor,
- String profitPrefix = '+ ',
- String lossPrefix = '- ',
- bool showProfitLossColors = true,
- 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,
});