Price constructor

Price({
  1. double? price,
  2. String? type,
  3. String? info,
  4. String? currency,
})

Constructor for creating a Price object.

The constructor initializes a Price object with optional named parameters:

  • price: The price attribute value of the price.
  • type: The type attribute value of the price.
  • info: The info attribute value of the price.
  • currency: The currency attribute value of the price.

Implementation

Price({
  this.price,
  this.type,
  this.info,
  this.currency,
});