PriceItem class

Class object containing required information to display in the checkout

This class holds the name, description, quantity and cost of items to be displayed on the drop down menu within the checkout page.

Constructors

PriceItem({required String name, String? description, required int quantity, required int itemCostCents, bool canEditQuantity = true, Widget? image})
Class object containing required information to display in the checkout

Properties

canEditQuantity bool
final
description String?
The optional description of the item to be displayed at checkout ex: 'additional information about product'
final
hashCode int
The hash code for this object.
no setterinherited
image Widget?
final
itemCostCents int
The total cost of the line item as cents to be display at checkout ex: 1299 => this represent $12.99
final
itemPrice int
no setter
itemPriceString String
no setter
name String
The name of the item to be displayed at checkout ex: 'Product A'
final
price String
getter for the price as string with no dollar sign included ex: returns => '12.99'
no setter
quantity int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPriceCents int
no setter

Methods

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

Operators

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