Item constructor

Item({
  1. String? image,
  2. String? name,
  3. int? price,
  4. int? quantity,
  5. String? reference,
  6. String? sku,
  7. String? url,
})

Creates a new instance of Item.

Example:

final item = Item(
  image: 'http://pagaleve.com.br',
  name: 'Product 1',
  price: 1000,
  quantity: 1,
  reference: '123456',
  sku: '123456',
  url: 'http://pagaleve.com.br',
);

Implementation

Item({
  this.image,
  this.name,
  this.price,
  this.quantity,
  this.reference,
  this.sku,
  this.url,
});