Shipping constructor

Shipping({
  1. Address? address,
  2. int? amount,
  3. bool? pickup,
  4. Tracking? tracking,
})

Creates a new instance of Shipping.

Example:

final shipping = Shipping(
  address: Address(
    city: 'City',
    number: '123',
    state: 'State',
    street: 'Street',
    zipCode: '12345678',
  ),
  amount: 1000,
  pickup: false,
  tracking: Tracking(
    carrier: 'Carrier',
    code: '123',
    url: 'https://example.com',
  ),
);

Implementation

Shipping({
  this.address,
  this.amount,
  this.pickup,
  this.tracking,
});