SpinnerControl class
This class provides SpinnerControl on custom payment sheet. SpinnerControl is used for displaying spinner option on custom payment sheet.
- Inheritance
-
- Object
- SheetControl
- SpinnerControl
Constructors
- SpinnerControl(String controlId, String title, String sheetItemType)
- Constructor to create SpinnerControl.
Properties
- controlId ↔ String?
-
getter/setter pairinherited
- controltype ↔ Controltype
-
getter/setter pairinherited
- 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
- selectedItemId ↔ String?
-
getter/setter pair
- sheetUpdatedListener ↔ SheetUpdatedListener?
-
getter/setter pair
Methods
-
addItem(
String id, String itemText, {int? location}) → void - API to 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
-
getSelectedItemId(
) → String? - API to get the ID of selected item.
-
getTitle(
) → String? - API to get spinner title.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItem(
String id) → void - API to remove item.
-
setSelectedItemId(
String id) → void - API to set selected item with ID.
-
setSheetUpdatedListener(
SheetUpdatedListener sheetUpdatedListener) → void - API to register a callback which is invoked when SpinnerControl is updated.
-
setTitle(
String title) → void - API to set spinner title.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateItem(
String id, String text) → void - API to update item text.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited