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 totalPriceCents})
Class object containing required information to display in the checkout

Properties

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
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
the quantity of the item to be display at checkout ex: 1
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPriceCents int
The total cost of the line item as cents to be display at checkout ex: 1299 => this represent $12.99
final

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