AmountBoxControl class

This class provides AmountBoxControl on custom payment sheet. AmountBoxControl is used for displaying amount information on custom payment sheet.

Inheritance

Constructors

AmountBoxControl(String controlId, String currencyCode)
Constructor to create AmountBoxControl.

Properties

controlId String?
getter/setter pairinherited
controltype Controltype
getter/setter pairinherited
currencyCode String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
items List<SheetItem>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addItem(String id, String title, double price, String extraPrice, {int? location}) → void
API to add item or add item (add item in a specific location, this is optional).
existItem(String id) bool
API to check the item is existing or not.
getControlId() String?
API to get controlId.
inherited
getControltype() Controltype
API to get controltype.
inherited
getCurrencyCode() String?
API to return the currency code. ISO 4217 currency code (example: USD, KRW, EUR, and so on).
getValue(String id) double?
API to get value for ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(String id) → void
API to remove item.
setAmountTotal(double price, String displayOption) → void
API to set the amount total.
setCurrencyCode(String currencyCode) → void
API to set the currency code.
toString() String
A string representation of this object.
inherited
updateTitle(String id, String title) → void
API to update item title.
updateValue(String id, double price, {String? extraPrice}) → void
API to update price.

Operators

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