Price constructor

const Price({
  1. Key? key,
  2. String currency = "¥",
  3. double size = Style.priceFontSize,
  4. required double? value,
  5. Color color = Style.priceTextColor,
  6. int decimal = 2,
  7. bool thousands = false,
})

Implementation

const Price(
    {Key? key,
    this.currency: "¥",
    this.size: Style.priceFontSize,
    required this.value,
    this.color: Style.priceTextColor,
    this.decimal: 2,
    this.thousands: false})
    : super(key: key);