TimePickerModel class Null safety

时间(小时分钟秒)选择器模型

Inheritance

Constructors

TimePickerModel({DateTime? currentTime, bool showSeconds = false, List<String>? formats, List<bool>? labels, List<int>? weights, List<String>? dividers})

Properties

currentTime DateTime
当前选中时间
read / write, inherited
dividers List<String>
分割线
read-only, inherited
firstIndex int
第一列索引
read / write, inherited
firstList List<String>
第一列数据源
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondIndex int
第二列索引
read / write, inherited
secondList List<String>
第二列数据源
read / write, inherited
showSeconds bool
是否显示秒
read / write
thirdIndex int
第三列索引
read / write, inherited
thirdList List<String>
第三列数据源
read / write, inherited
weights List<int>
布局权重
read-only, inherited

Methods

finalTime() DateTime
最终时间
override
firstStringAtIndex(int index) String?
第一列选中字符串
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
secondStringAtIndex(int index) String?
第二列选中字符串
override
thirdStringAtIndex(int index) String?
第三列选中字符串
override
toString() String
A string representation of this object. [...]
inherited
updateFirstIndex(int index) → void
更新第一列索引
inherited
updateSecondIndex(int index) → void
更新第二列索引
inherited
updateThirdIndex(int index) → void
更新第三列索引
inherited

Operators

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