NumberPickerAdapter class

Inheritance

Constructors

NumberPickerAdapter.new({required List<NumberPickerColumn> data})

Properties

cur NumberPickerColumn?
getter/setter pair
data List<NumberPickerColumn>
final
hashCode int
The hash code for this object.
no setterinherited
isLinkage bool
no setterinherited
length int
Content length of current column
no setterinherited
maxLevel int
no setterinherited
picker Picker?
Reference to the picker widget using this adapter.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
no setterinherited

Methods

buildItem(BuildContext context, int index) Widget
Builds the widget for a specific item in the current column.
override
doSelect(int column, int index) → void
inherited
doShow() → void
inherited
getColumnFlex(int column) int
override
getIsLinkage() bool
override
getLength() int
Returns the number of items in the current column.
override
getMaxLevel() int
Returns the maximum number of columns (levels) this adapter supports.
override
getSelectedValues() List<int>
override
getText() String
inherited
initSelects() → void
Initializes the selected indices for all columns.
override
makeText(Widget? child, String? text, bool isSel) Widget
inherited
makeTextEx(Widget? child, String text, Widget? postfix, Widget? suffix, bool isSel) Widget
inherited
needUpdatePrev(int curIndex) bool
Need to update previous columns
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataChanged() → void
Notify adapter of data changes
inherited
setColumn(int index) → void
Sets the active column for subsequent operations.
override
toString() String
A string representation of this object.
inherited

Operators

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