DesignWheelColumn class

One column of a DesignWheelPicker: its rows, their names and which of them can be chosen.

DesignWheelColumn(itemCount: 12, itemLabel: (index) => 'Month ${index + 1}', semanticLabel: 'Month')
Annotations

Constructors

DesignWheelColumn({required int itemCount, required String itemLabel(int index), String? semanticLabel, int minIndex = 0, int? maxIndex, bool isItemEnabled(int index)?, bool looping = false})
A column of itemCount rows, each named by itemLabel.
const

Properties

firstEnabled → int?
The first live row, or null when none is.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isItemEnabled → bool Function(int index)?
Whether a row between minIndex and maxIndex can be chosen (a booked time); null: every one. The wheel turns past a row it refuses.
final
itemCount → int
How many rows the column has.
final
itemLabel → String Function(int index)
A row's name: what a screen reader says for it and what typing matches.
final
lastEnabled → int?
The last live row, or null when none is.
no setter
looping → bool
Whether the rows repeat past the ends (minutes, hours). Defaults to false.
final
maxIndex → int?
The greatest row that can be chosen; null: the last.
final
minIndex → int
The least row that can be chosen; the rows before it show disabled, as iOS's picker shows dates before its minimum. Defaults to the first.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
The column's name, said before its row ("Month"); null: none.
final

Methods

isEnabled(int index) → bool
Whether row index can be chosen: between minIndex and maxIndex, and allowed by isItemEnabled.
nearestEnabled(int index, {bool? forward}) → int?
The live row nearest index (clamped to the column), index itself when it is live. forward picks which way to look first: true, the rows after; false, before; null, the nearer (before on a tie). A looping column counts its distances round the ends. Null when no row is live.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stepFrom(int index, int count) → int
The next live row count rows on from index (count negative: back), wrapping when looping, else stopping at the last live row that way; index when none is live that way.
toString() → String
A string representation of this object.
inherited

Operators

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