PriceButton constructor

const PriceButton({
  1. Key? key,
  2. required String label,
  3. required double price,
  4. Color? backgroundColor,
  5. bool showDecimal = true,
  6. bool showSymbol = true,
  7. String? symbol,
  8. Color? textColor,
  9. IconData? icon,
  10. dynamic onPressed()?,
})

Implementation

const PriceButton({
  super.key,
  required this.label,
  required this.price,
  this.backgroundColor,
  this.showDecimal = true,
  this.showSymbol = true,
  this.symbol,
  this.textColor,
  this.icon,
  this.onPressed,
});