StoreShippingRate class

One way of shipping one package.

Constructors

StoreShippingRate({required String rateId, required String name, required StoreMoney price, required StoreMoney taxes, required bool selected, String description = '', String deliveryTime = '', String methodId = '', int instanceId = 0})
Creates a rate.
const
StoreShippingRate.fromJson(Map<String, Object?> json)
Reads the Store API's representation.
factory

Properties

deliveryTime String
An estimate, when the method provides one.
final
description String
Longer text from the shipping method.
final
hashCode int
The hash code for this object.
no setterinherited
instanceId int
The configured instance of that method.
final
isFree bool
Whether the shopper pays nothing for this.
no setter
methodId String
Which shipping method produced this, such as flat_rate.
final
name String
What to show the shopper, such as Flat rate.
final
price StoreMoney
What it costs.
final
rateId String
The id to pass back when choosing this rate, such as flat_rate:10.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Whether this is the rate currently chosen.
final
taxes StoreMoney
Tax on the shipping.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited